public class Lucene40StoredFieldsFormat extends StoredFieldsFormat
Stored fields are represented by two files:
The field index, or .fdx file.
This is used to find the location within the field data file of the fields
of a particular document. Because it contains fixed-length data, this file may
be easily randomly accessed. The position of document n 's field data is
the Uint64 at n*8 in this file.
This contains, for each document, a pointer to its field data, as follows:
CodecHeaderUint64This contains the stored fields of each document, as follows:
CodecHeaderVIntVIntByteFloat.intBitsToFloat(int)Double.longBitsToDouble(long)Byte>^ValueSizeVInt| Constructor and Description |
|---|
Lucene40StoredFieldsFormat()
Sole constructor.
|
| Modifier and Type | Method and Description |
|---|---|
StoredFieldsReader |
fieldsReader(Directory directory,
SegmentInfo si,
FieldInfos fn,
IOContext context)
Returns a
StoredFieldsReader to load stored
fields. |
StoredFieldsWriter |
fieldsWriter(Directory directory,
SegmentInfo si,
IOContext context)
Returns a
StoredFieldsWriter to write stored
fields. |
public StoredFieldsReader fieldsReader(Directory directory, SegmentInfo si, FieldInfos fn, IOContext context) throws IOException
StoredFieldsFormatStoredFieldsReader to load stored
fields.fieldsReader in class StoredFieldsFormatIOExceptionpublic StoredFieldsWriter fieldsWriter(Directory directory, SegmentInfo si, IOContext context) throws IOException
StoredFieldsFormatStoredFieldsWriter to write stored
fields.fieldsWriter in class StoredFieldsFormatIOExceptionCopyright © 2000-2013 Apache Software Foundation. All Rights Reserved.