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 BytesRefATT_KEY(package private) static BytesRefATT_VALUE(package private) static BytesRefDATA_DIM_COUNT(package private) static BytesRefDIM_NUM_BYTES(package private) static BytesRefDOCVALUES(package private) static BytesRefDOCVALUES_GEN(package private) static java.lang.StringFIELD_INFOS_EXTENSIONExtension of field infos(package private) static BytesRefINDEX_DIM_COUNT(package private) static BytesRefINDEXOPTIONS(package private) static BytesRefNAME(package private) static BytesRefNORMS(package private) static BytesRefNUM_ATTS(package private) static BytesRefNUMBER(package private) static BytesRefNUMFIELDS(package private) static BytesRefPAYLOADS(package private) static BytesRefSOFT_DELETES(package private) static BytesRefSTORETV(package private) static BytesRefSTORETVOFF(package private) static BytesRefSTORETVPOS(package private) static BytesRefVECTOR_NUM_DIMS(package private) static BytesRefVECTOR_SEARCH_STRATEGY
-
Constructor Summary
Constructors Constructor Description SimpleTextFieldInfosFormat()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description VectorSimilarityFunctiondistanceFunction(java.lang.String scoreFunction)DocValuesTypedocValuesType(java.lang.String dvType)private static java.lang.StringgetDocValuesType(DocValuesType type)FieldInfosread(Directory directory, SegmentInfo segmentInfo, java.lang.String segmentSuffix, IOContext iocontext)private java.lang.StringreadString(int offset, BytesRefBuilder scratch)voidwrite(Directory directory, SegmentInfo segmentInfo, java.lang.String segmentSuffix, FieldInfos infos, IOContext context)Writes the providedFieldInfosto 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
-
VECTOR_NUM_DIMS
static final BytesRef VECTOR_NUM_DIMS
-
VECTOR_SEARCH_STRATEGY
static final BytesRef VECTOR_SEARCH_STRATEGY
-
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:FieldInfosFormatRead theFieldInfospreviously 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:
readin classFieldInfosFormat- Throws:
java.io.IOException
-
docValuesType
public DocValuesType docValuesType(java.lang.String dvType)
-
distanceFunction
public VectorSimilarityFunction distanceFunction(java.lang.String scoreFunction)
-
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:FieldInfosFormatWrites the providedFieldInfosto the directory.- Specified by:
writein classFieldInfosFormat- Throws:
java.io.IOException
-
getDocValuesType
private static java.lang.String getDocValuesType(DocValuesType type)
-
-