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,
java.lang.String segmentSuffix,
IOContext context)
|
void |
write(Directory directory,
SegmentInfo segmentInfo,
java.lang.String segmentSuffix,
FieldInfos infos,
IOContext context)
Writes the provided
FieldInfos to the
directory. |
public FieldInfos read(Directory directory, SegmentInfo segmentInfo, java.lang.String segmentSuffix, IOContext context) throws java.io.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 FieldInfosFormatjava.io.IOExceptionpublic void write(Directory directory, SegmentInfo segmentInfo, java.lang.String segmentSuffix, FieldInfos infos, IOContext context) throws java.io.IOException
FieldInfosFormatFieldInfos to the
directory.write in class FieldInfosFormatjava.io.IOExceptionCopyright © 2000–2025 The Apache Software Foundation. All rights reserved.