public final class Lucene50FieldInfosFormat extends FieldInfosFormat
Field names are stored in the field info file, with suffix .fnm.
FieldInfos (.fnm) --> Header,FieldsCount, <FieldName,FieldNumber, FieldBits,DocValuesBits,DocValuesGen,Attributes> FieldsCount,Footer
Data types:
IndexHeaderVIntStringByteVIntMap<String,String>Int64CodecFooternorms options, and the low-order bits representing
DocValues options. Each four-bit integer can be decoded as such:
DocValuesType.NUMERIC)DocValuesType#BINARY)DocValuesType#SORTED)DocValuesFormat.| Constructor and Description |
|---|
Lucene50FieldInfosFormat()
Sole constructor.
|
| Modifier and Type | Method and Description |
|---|---|
FieldInfos |
read(Directory directory,
SegmentInfo segmentInfo,
String segmentSuffix,
IOContext context)
|
void |
write(Directory directory,
SegmentInfo segmentInfo,
String segmentSuffix,
FieldInfos infos,
IOContext context)
Writes the provided
FieldInfos to the
directory. |
public FieldInfos read(Directory directory, SegmentInfo segmentInfo, String segmentSuffix, IOContext context) throws IOException
FieldInfosFormatFieldInfos previously written with FieldInfosFormat.write(org.apache.lucene.store.Directory, org.apache.lucene.index.SegmentInfo, java.lang.String, org.apache.lucene.index.FieldInfos, org.apache.lucene.store.IOContext).read in class FieldInfosFormatIOExceptionpublic void write(Directory directory, SegmentInfo segmentInfo, String segmentSuffix, FieldInfos infos, IOContext context) throws IOException
FieldInfosFormatFieldInfos to the
directory.write in class FieldInfosFormatIOExceptionCopyright © 2000-2015 Apache Software Foundation. All Rights Reserved.