public final class Lucene60FieldInfosFormat extends FieldInfosFormat
Field names are stored in the field info file, with suffix .fnm.
FieldInfos (.fnm) --> Header,FieldsCount, <FieldName,FieldNumber, FieldBits,DocValuesBits,DocValuesGen,Attributes,DimensionCount,DimensionNumBytes> FieldsCount,Footer
Data types:
IndexHeader
VInt
String
Byte
VInt
Map<String,String>
Int64
CodecFooter
norms
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
.LongPoint
Constructor and Description |
---|
Lucene60FieldInfosFormat()
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
FieldInfosFormat
FieldInfos
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 FieldInfosFormat
IOException
public void write(Directory directory, SegmentInfo segmentInfo, String segmentSuffix, FieldInfos infos, IOContext context) throws IOException
FieldInfosFormat
FieldInfos
to the
directory.write
in class FieldInfosFormat
IOException
Copyright © 2000-2019 Apache Software Foundation. All Rights Reserved.