|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.lucene.codecs.StoredFieldsFormat org.apache.lucene.codecs.lucene40.Lucene40StoredFieldsFormat
public class Lucene40StoredFieldsFormat
Lucene 4.0 Stored Fields Format.
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:
CodecHeader
Uint64
This contains the stored fields of each document, as follows:
CodecHeader
VInt
VInt
Byte
Float.intBitsToFloat(int)
Double.longBitsToDouble(long)
Byte
>^ValueSizeVInt
Constructor Summary | |
---|---|
Lucene40StoredFieldsFormat()
Sole constructor. |
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Lucene40StoredFieldsFormat()
Method Detail |
---|
public StoredFieldsReader fieldsReader(Directory directory, SegmentInfo si, FieldInfos fn, IOContext context) throws IOException
StoredFieldsFormat
StoredFieldsReader
to load stored
fields.
fieldsReader
in class StoredFieldsFormat
IOException
public StoredFieldsWriter fieldsWriter(Directory directory, SegmentInfo si, IOContext context) throws IOException
StoredFieldsFormat
StoredFieldsWriter
to write stored
fields.
fieldsWriter
in class StoredFieldsFormat
IOException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |