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
Modifier and Type | Field and Description |
---|---|
(package private) static java.lang.String |
CODEC_NAME |
(package private) static java.lang.String |
EXTENSION
Extension of field infos
|
(package private) static int |
FORMAT_CURRENT |
(package private) static int |
FORMAT_SELECTIVE_INDEXING |
(package private) static int |
FORMAT_SOFT_DELETES |
(package private) static int |
FORMAT_START |
(package private) static byte |
OMIT_NORMS |
(package private) static byte |
SOFT_DELETES_FIELD |
(package private) static byte |
STORE_PAYLOADS |
(package private) static byte |
STORE_TERMVECTOR |
Constructor and Description |
---|
Lucene60FieldInfosFormat()
Sole constructor.
|
Modifier and Type | Method and Description |
---|---|
private static byte |
docValuesByte(DocValuesType type) |
private static DocValuesType |
getDocValuesType(IndexInput input,
byte b) |
private static IndexOptions |
getIndexOptions(IndexInput input,
byte b) |
private static byte |
indexOptionsByte(IndexOptions indexOptions) |
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. |
static final java.lang.String EXTENSION
static final java.lang.String CODEC_NAME
static final int FORMAT_START
static final int FORMAT_SOFT_DELETES
static final int FORMAT_SELECTIVE_INDEXING
static final int FORMAT_CURRENT
static final byte STORE_TERMVECTOR
static final byte OMIT_NORMS
static final byte STORE_PAYLOADS
static final byte SOFT_DELETES_FIELD
public FieldInfos read(Directory directory, SegmentInfo segmentInfo, java.lang.String segmentSuffix, IOContext context) throws java.io.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
java.io.IOException
private static byte docValuesByte(DocValuesType type)
private static DocValuesType getDocValuesType(IndexInput input, byte b) throws java.io.IOException
java.io.IOException
private static byte indexOptionsByte(IndexOptions indexOptions)
private static IndexOptions getIndexOptions(IndexInput input, byte b) throws java.io.IOException
java.io.IOException
public void write(Directory directory, SegmentInfo segmentInfo, java.lang.String segmentSuffix, FieldInfos infos, IOContext context) throws java.io.IOException
FieldInfosFormat
FieldInfos
to the
directory.write
in class FieldInfosFormat
java.io.IOException