Class Lucene91Codec
- All Implemented Interfaces:
NamedSPILoader.NamedSPI
If you want to reuse functionality of this codec in another codec, extend FilterCodec
.
- See Also:
- WARNING: This API is experimental and might change in incompatible ways in the next release.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enum
Configuration option for the codec. -
Constructor Summary
ConstructorsConstructorDescriptionInstantiates a new codec.Instantiates a new codec, specifying the stored fields compression mode to use. -
Method Summary
Modifier and TypeMethodDescriptionfinal CompoundFormat
Encodes/decodes compound filesfinal DocValuesFormat
Encodes/decodes docvaluesfinal FieldInfosFormat
Encodes/decodes field infos filegetDocValuesFormatForField
(String field) Returns the docvalues format that should be used for writing new segments offield
.Returns the vectors format that should be used for writing new segments offield
getPostingsFormatForField
(String field) Returns the postings format that should be used for writing new segments offield
.final KnnVectorsFormat
Encodes/decodes numeric vector fieldsfinal LiveDocsFormat
Encodes/decodes live docsfinal NormsFormat
Encodes/decodes document normalization valuesfinal PointsFormat
Encodes/decodes points indexfinal PostingsFormat
Encodes/decodes postingsfinal SegmentInfoFormat
Encodes/decodes segment info filefinal StoredFieldsFormat
Encodes/decodes stored fieldsfinal TermVectorsFormat
Encodes/decodes term vectorsMethods inherited from class org.apache.lucene.codecs.Codec
availableCodecs, forName, getDefault, getName, reloadCodecs, setDefault, toString
-
Constructor Details
-
Lucene91Codec
public Lucene91Codec()Instantiates a new codec. -
Lucene91Codec
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 Details
-
storedFieldsFormat
Description copied from class:Codec
Encodes/decodes stored fields- Specified by:
storedFieldsFormat
in classCodec
-
termVectorsFormat
Description copied from class:Codec
Encodes/decodes term vectors- Specified by:
termVectorsFormat
in classCodec
-
postingsFormat
Description copied from class:Codec
Encodes/decodes postings- Specified by:
postingsFormat
in classCodec
-
fieldInfosFormat
Description copied from class:Codec
Encodes/decodes field infos file- Specified by:
fieldInfosFormat
in classCodec
-
segmentInfoFormat
Description copied from class:Codec
Encodes/decodes segment info file- Specified by:
segmentInfoFormat
in classCodec
-
liveDocsFormat
Description copied from class:Codec
Encodes/decodes live docs- Specified by:
liveDocsFormat
in classCodec
-
compoundFormat
Description copied from class:Codec
Encodes/decodes compound files- Specified by:
compoundFormat
in classCodec
-
pointsFormat
Description copied from class:Codec
Encodes/decodes points index- Specified by:
pointsFormat
in classCodec
-
knnVectorsFormat
Description copied from class:Codec
Encodes/decodes numeric vector fields- Specified by:
knnVectorsFormat
in classCodec
-
getPostingsFormatForField
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
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
Returns the vectors format that should be used for writing new segments offield
The default implementation always returns "Lucene91".
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
Description copied from class:Codec
Encodes/decodes docvalues- Specified by:
docValuesFormat
in classCodec
-
normsFormat
Description copied from class:Codec
Encodes/decodes document normalization values- Specified by:
normsFormat
in classCodec
-