Class SimpleTextFieldInfosFormat
- java.lang.Object
-
- org.apache.lucene.codecs.FieldInfosFormat
-
- org.apache.lucene.codecs.simpletext.SimpleTextFieldInfosFormat
-
public class SimpleTextFieldInfosFormat extends FieldInfosFormat
plaintext field infos formatFOR RECREATIONAL USE ONLY
-
-
Field Summary
Fields Modifier and Type Field Description (package private) static BytesRef
ATT_KEY
(package private) static BytesRef
ATT_VALUE
(package private) static BytesRef
DATA_DIM_COUNT
(package private) static BytesRef
DIM_NUM_BYTES
(package private) static BytesRef
DOCVALUES
(package private) static BytesRef
DOCVALUES_GEN
(package private) static java.lang.String
FIELD_INFOS_EXTENSION
Extension of field infos(package private) static BytesRef
INDEX_DIM_COUNT
(package private) static BytesRef
INDEXOPTIONS
(package private) static BytesRef
NAME
(package private) static BytesRef
NORMS
(package private) static BytesRef
NUM_ATTS
(package private) static BytesRef
NUMBER
(package private) static BytesRef
NUMFIELDS
(package private) static BytesRef
PAYLOADS
(package private) static BytesRef
SOFT_DELETES
(package private) static BytesRef
STORETV
(package private) static BytesRef
STORETVOFF
(package private) static BytesRef
STORETVPOS
-
Constructor Summary
Constructors Constructor Description SimpleTextFieldInfosFormat()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description DocValuesType
docValuesType(java.lang.String dvType)
private static java.lang.String
getDocValuesType(DocValuesType type)
FieldInfos
read(Directory directory, SegmentInfo segmentInfo, java.lang.String segmentSuffix, IOContext iocontext)
private java.lang.String
readString(int offset, BytesRefBuilder scratch)
void
write(Directory directory, SegmentInfo segmentInfo, java.lang.String segmentSuffix, FieldInfos infos, IOContext context)
Writes the providedFieldInfos
to the directory.
-
-
-
Field Detail
-
FIELD_INFOS_EXTENSION
static final java.lang.String FIELD_INFOS_EXTENSION
Extension of field infos- See Also:
- Constant Field Values
-
NUMFIELDS
static final BytesRef NUMFIELDS
-
NAME
static final BytesRef NAME
-
NUMBER
static final BytesRef NUMBER
-
STORETV
static final BytesRef STORETV
-
STORETVPOS
static final BytesRef STORETVPOS
-
STORETVOFF
static final BytesRef STORETVOFF
-
PAYLOADS
static final BytesRef PAYLOADS
-
NORMS
static final BytesRef NORMS
-
DOCVALUES
static final BytesRef DOCVALUES
-
DOCVALUES_GEN
static final BytesRef DOCVALUES_GEN
-
INDEXOPTIONS
static final BytesRef INDEXOPTIONS
-
NUM_ATTS
static final BytesRef NUM_ATTS
-
ATT_KEY
static final BytesRef ATT_KEY
-
ATT_VALUE
static final BytesRef ATT_VALUE
-
DATA_DIM_COUNT
static final BytesRef DATA_DIM_COUNT
-
INDEX_DIM_COUNT
static final BytesRef INDEX_DIM_COUNT
-
DIM_NUM_BYTES
static final BytesRef DIM_NUM_BYTES
-
SOFT_DELETES
static final BytesRef SOFT_DELETES
-
-
Method Detail
-
read
public FieldInfos read(Directory directory, SegmentInfo segmentInfo, java.lang.String segmentSuffix, IOContext iocontext) throws java.io.IOException
Description copied from class:FieldInfosFormat
Read theFieldInfos
previously written withFieldInfosFormat.write(org.apache.lucene.store.Directory, org.apache.lucene.index.SegmentInfo, java.lang.String, org.apache.lucene.index.FieldInfos, org.apache.lucene.store.IOContext)
.- Specified by:
read
in classFieldInfosFormat
- Throws:
java.io.IOException
-
docValuesType
public DocValuesType docValuesType(java.lang.String dvType)
-
readString
private java.lang.String readString(int offset, BytesRefBuilder scratch)
-
write
public void write(Directory directory, SegmentInfo segmentInfo, java.lang.String segmentSuffix, FieldInfos infos, IOContext context) throws java.io.IOException
Description copied from class:FieldInfosFormat
Writes the providedFieldInfos
to the directory.- Specified by:
write
in classFieldInfosFormat
- Throws:
java.io.IOException
-
getDocValuesType
private static java.lang.String getDocValuesType(DocValuesType type)
-
-