Class Lucene90Codec
- java.lang.Object
-
- org.apache.lucene.codecs.Codec
-
- org.apache.lucene.backward_codecs.lucene90.Lucene90Codec
-
- All Implemented Interfaces:
NamedSPILoader.NamedSPI
public class Lucene90Codec extends Codec
Implements the Lucene 9.0 index formatIf you want to reuse functionality of this codec in another codec, extend
FilterCodec.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classLucene90Codec.ModeConfiguration option for the codec.
-
Field Summary
Fields Modifier and Type Field Description private CompoundFormatcompoundFormatprivate DocValuesFormatdefaultDVFormatprivate KnnVectorsFormatdefaultKnnVectorsFormatprivate PostingsFormatdefaultPostingsFormatprivate DocValuesFormatdocValuesFormatprivate FieldInfosFormatfieldInfosFormatprivate KnnVectorsFormatknnVectorsFormatprivate LiveDocsFormatliveDocsFormatprivate NormsFormatnormsFormatprivate PostingsFormatpostingsFormatprivate SegmentInfoFormatsegmentInfosFormatprivate StoredFieldsFormatstoredFieldsFormatprivate TermVectorsFormatvectorsFormat
-
Constructor Summary
Constructors Constructor Description Lucene90Codec()Instantiates a new codec.Lucene90Codec(Lucene90Codec.Mode mode)Instantiates a new codec, specifying the stored fields compression mode to use.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CompoundFormatcompoundFormat()Encodes/decodes compound filesDocValuesFormatdocValuesFormat()Encodes/decodes docvaluesFieldInfosFormatfieldInfosFormat()Encodes/decodes field infos fileDocValuesFormatgetDocValuesFormatForField(java.lang.String field)Returns the docvalues format that should be used for writing new segments offield.KnnVectorsFormatgetKnnVectorsFormatForField(java.lang.String field)Returns the vectors format that should be used for writing new segments offieldPostingsFormatgetPostingsFormatForField(java.lang.String field)Returns the postings format that should be used for writing new segments offield.KnnVectorsFormatknnVectorsFormat()Encodes/decodes numeric vector fieldsLiveDocsFormatliveDocsFormat()Encodes/decodes live docsNormsFormatnormsFormat()Encodes/decodes document normalization valuesPointsFormatpointsFormat()Encodes/decodes points indexPostingsFormatpostingsFormat()Encodes/decodes postingsSegmentInfoFormatsegmentInfoFormat()Encodes/decodes segment info fileStoredFieldsFormatstoredFieldsFormat()Encodes/decodes stored fieldsTermVectorsFormattermVectorsFormat()Encodes/decodes term vectors-
Methods inherited from class org.apache.lucene.codecs.Codec
availableCodecs, forName, getDefault, getName, reloadCodecs, setDefault, toString
-
-
-
-
Field Detail
-
vectorsFormat
private final TermVectorsFormat vectorsFormat
-
fieldInfosFormat
private final FieldInfosFormat fieldInfosFormat
-
segmentInfosFormat
private final SegmentInfoFormat segmentInfosFormat
-
liveDocsFormat
private final LiveDocsFormat liveDocsFormat
-
compoundFormat
private final CompoundFormat compoundFormat
-
normsFormat
private final NormsFormat normsFormat
-
defaultPostingsFormat
private final PostingsFormat defaultPostingsFormat
-
postingsFormat
private final PostingsFormat postingsFormat
-
defaultDVFormat
private final DocValuesFormat defaultDVFormat
-
docValuesFormat
private final DocValuesFormat docValuesFormat
-
defaultKnnVectorsFormat
private final KnnVectorsFormat defaultKnnVectorsFormat
-
knnVectorsFormat
private final KnnVectorsFormat knnVectorsFormat
-
storedFieldsFormat
private final StoredFieldsFormat storedFieldsFormat
-
-
Constructor Detail
-
Lucene90Codec
public Lucene90Codec()
Instantiates a new codec.
-
Lucene90Codec
public Lucene90Codec(Lucene90Codec.Mode mode)
Instantiates a new codec, specifying the stored fields compression mode to use.- Parameters:
mode- stored fields compression mode to use for newly flushed/merged segments.
-
-
Method Detail
-
storedFieldsFormat
public final StoredFieldsFormat storedFieldsFormat()
Description copied from class:CodecEncodes/decodes stored fields- Specified by:
storedFieldsFormatin classCodec
-
termVectorsFormat
public final TermVectorsFormat termVectorsFormat()
Description copied from class:CodecEncodes/decodes term vectors- Specified by:
termVectorsFormatin classCodec
-
postingsFormat
public final PostingsFormat postingsFormat()
Description copied from class:CodecEncodes/decodes postings- Specified by:
postingsFormatin classCodec
-
fieldInfosFormat
public final FieldInfosFormat fieldInfosFormat()
Description copied from class:CodecEncodes/decodes field infos file- Specified by:
fieldInfosFormatin classCodec
-
segmentInfoFormat
public final SegmentInfoFormat segmentInfoFormat()
Description copied from class:CodecEncodes/decodes segment info file- Specified by:
segmentInfoFormatin classCodec
-
liveDocsFormat
public final LiveDocsFormat liveDocsFormat()
Description copied from class:CodecEncodes/decodes live docs- Specified by:
liveDocsFormatin classCodec
-
compoundFormat
public final CompoundFormat compoundFormat()
Description copied from class:CodecEncodes/decodes compound files- Specified by:
compoundFormatin classCodec
-
pointsFormat
public final PointsFormat pointsFormat()
Description copied from class:CodecEncodes/decodes points index- Specified by:
pointsFormatin classCodec
-
knnVectorsFormat
public KnnVectorsFormat knnVectorsFormat()
Description copied from class:CodecEncodes/decodes numeric vector fields- Specified by:
knnVectorsFormatin classCodec
-
getPostingsFormatForField
public PostingsFormat getPostingsFormatForField(java.lang.String field)
Returns the postings format that should be used for writing new segments offield.The default implementation always returns "Lucene90".
WARNING: if you subclass, you are responsible for index backwards compatibility: future version of Lucene are only guaranteed to be able to read the default implementation,
-
getDocValuesFormatForField
public DocValuesFormat getDocValuesFormatForField(java.lang.String field)
Returns the docvalues format that should be used for writing new segments offield.The default implementation always returns "Lucene90".
WARNING: if you subclass, you are responsible for index backwards compatibility: future version of Lucene are only guaranteed to be able to read the default implementation.
-
getKnnVectorsFormatForField
public KnnVectorsFormat getKnnVectorsFormatForField(java.lang.String field)
Returns the vectors format that should be used for writing new segments offieldThe default implementation always returns "Lucene90".
WARNING: if you subclass, you are responsible for index backwards compatibility: future version of Lucene are only guaranteed to be able to read the default implementation.
-
docValuesFormat
public final DocValuesFormat docValuesFormat()
Description copied from class:CodecEncodes/decodes docvalues- Specified by:
docValuesFormatin classCodec
-
normsFormat
public final NormsFormat normsFormat()
Description copied from class:CodecEncodes/decodes document normalization values- Specified by:
normsFormatin classCodec
-
-