Class Lucene912Codec
- java.lang.Object
-
- org.apache.lucene.codecs.Codec
-
- org.apache.lucene.codecs.lucene912.Lucene912Codec
-
- All Implemented Interfaces:
NamedSPILoader.NamedSPI
public class Lucene912Codec extends Codec
Implements the Lucene 9.12 index formatIf you want to reuse functionality of this codec in another codec, extend
FilterCodec.- See Also:
package documentation for file format details.- WARNING: This API is experimental and might change in incompatible ways in the next release.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classLucene912Codec.ModeConfiguration option for the codec.
-
Constructor Summary
Constructors Constructor Description Lucene912Codec()Instantiates a new codec.Lucene912Codec(Lucene912Codec.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(String field)Returns the docvalues format that should be used for writing new segments offield.KnnVectorsFormatgetKnnVectorsFormatForField(String field)Returns the vectors format that should be used for writing new segments offieldPostingsFormatgetPostingsFormatForField(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
-
-
-
-
Constructor Detail
-
Lucene912Codec
public Lucene912Codec()
Instantiates a new codec.
-
Lucene912Codec
public Lucene912Codec(Lucene912Codec.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 final KnnVectorsFormat knnVectorsFormat()
Description copied from class:CodecEncodes/decodes numeric vector fields- Specified by:
knnVectorsFormatin classCodec
-
getPostingsFormatForField
public PostingsFormat getPostingsFormatForField(String field)
Returns the postings format that should be used for writing new segments offield.The default implementation always returns "Lucene912".
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(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(String field)
Returns the vectors format that should be used for writing new segments offieldThe default implementation always returns "Lucene99HnswVectorsFormat".
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
-
-