Class Lucene99Codec
- java.lang.Object
-
- org.apache.lucene.codecs.Codec
-
- org.apache.lucene.codecs.lucene99.Lucene99Codec
-
- All Implemented Interfaces:
NamedSPILoader.NamedSPI
public class Lucene99Codec extends Codec
Implements the Lucene 9.9 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 class
Lucene99Codec.Mode
Configuration option for the codec.
-
Constructor Summary
Constructors Constructor Description Lucene99Codec()
Instantiates a new codec.Lucene99Codec(Lucene99Codec.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 CompoundFormat
compoundFormat()
Encodes/decodes compound filesDocValuesFormat
docValuesFormat()
Encodes/decodes docvaluesFieldInfosFormat
fieldInfosFormat()
Encodes/decodes field infos fileDocValuesFormat
getDocValuesFormatForField(String field)
Returns the docvalues format that should be used for writing new segments offield
.KnnVectorsFormat
getKnnVectorsFormatForField(String field)
Returns the vectors format that should be used for writing new segments offield
PostingsFormat
getPostingsFormatForField(String field)
Returns the postings format that should be used for writing new segments offield
.KnnVectorsFormat
knnVectorsFormat()
Encodes/decodes numeric vector fieldsLiveDocsFormat
liveDocsFormat()
Encodes/decodes live docsNormsFormat
normsFormat()
Encodes/decodes document normalization valuesPointsFormat
pointsFormat()
Encodes/decodes points indexPostingsFormat
postingsFormat()
Encodes/decodes postingsSegmentInfoFormat
segmentInfoFormat()
Encodes/decodes segment info fileStoredFieldsFormat
storedFieldsFormat()
Encodes/decodes stored fieldsTermVectorsFormat
termVectorsFormat()
Encodes/decodes term vectors-
Methods inherited from class org.apache.lucene.codecs.Codec
availableCodecs, forName, getDefault, getName, reloadCodecs, setDefault, toString
-
-
-
-
Constructor Detail
-
Lucene99Codec
public Lucene99Codec()
Instantiates a new codec.
-
Lucene99Codec
public Lucene99Codec(Lucene99Codec.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:Codec
Encodes/decodes stored fields- Specified by:
storedFieldsFormat
in classCodec
-
termVectorsFormat
public final TermVectorsFormat termVectorsFormat()
Description copied from class:Codec
Encodes/decodes term vectors- Specified by:
termVectorsFormat
in classCodec
-
postingsFormat
public final PostingsFormat postingsFormat()
Description copied from class:Codec
Encodes/decodes postings- Specified by:
postingsFormat
in classCodec
-
fieldInfosFormat
public final FieldInfosFormat fieldInfosFormat()
Description copied from class:Codec
Encodes/decodes field infos file- Specified by:
fieldInfosFormat
in classCodec
-
segmentInfoFormat
public final SegmentInfoFormat segmentInfoFormat()
Description copied from class:Codec
Encodes/decodes segment info file- Specified by:
segmentInfoFormat
in classCodec
-
liveDocsFormat
public final LiveDocsFormat liveDocsFormat()
Description copied from class:Codec
Encodes/decodes live docs- Specified by:
liveDocsFormat
in classCodec
-
compoundFormat
public final CompoundFormat compoundFormat()
Description copied from class:Codec
Encodes/decodes compound files- Specified by:
compoundFormat
in classCodec
-
pointsFormat
public final PointsFormat pointsFormat()
Description copied from class:Codec
Encodes/decodes points index- Specified by:
pointsFormat
in classCodec
-
knnVectorsFormat
public final KnnVectorsFormat knnVectorsFormat()
Description copied from class:Codec
Encodes/decodes numeric vector fields- Specified by:
knnVectorsFormat
in 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 "Lucene99".
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 "Lucene99".
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 offield
The default implementation always returns "Lucene95".
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:Codec
Encodes/decodes docvalues- Specified by:
docValuesFormat
in classCodec
-
normsFormat
public final NormsFormat normsFormat()
Description copied from class:Codec
Encodes/decodes document normalization values- Specified by:
normsFormat
in classCodec
-
-