Class Lucene99Codec
- 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 enumConfiguration 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 CompoundFormatfinal DocValuesFormatfinal FieldInfosFormatgetDocValuesFormatForField(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 offieldgetPostingsFormatForField(String field) Returns the postings format that should be used for writing new segments offield.final KnnVectorsFormatfinal LiveDocsFormatfinal NormsFormatfinal PointsFormatfinal PostingsFormatfinal SegmentInfoFormatfinal StoredFieldsFormatfinal TermVectorsFormatMethods inherited from class org.apache.lucene.codecs.Codec
availableCodecs, forName, getDefault, getName, reloadCodecs, setDefault, toString
-
Constructor Details
-
Lucene99Codec
public Lucene99Codec()Instantiates a new codec. -
Lucene99Codec
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
- Specified by:
storedFieldsFormatin classCodec
-
termVectorsFormat
- Specified by:
termVectorsFormatin classCodec
-
postingsFormat
- Specified by:
postingsFormatin classCodec
-
fieldInfosFormat
- Specified by:
fieldInfosFormatin classCodec
-
segmentInfoFormat
- Specified by:
segmentInfoFormatin classCodec
-
liveDocsFormat
- Specified by:
liveDocsFormatin classCodec
-
compoundFormat
- Specified by:
compoundFormatin classCodec
-
pointsFormat
- Specified by:
pointsFormatin classCodec
-
knnVectorsFormat
- Specified by:
knnVectorsFormatin classCodec
-
getPostingsFormatForField
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
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
Returns the vectors format that should be used for writing new segments offieldThe 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
- Specified by:
docValuesFormatin classCodec
-
normsFormat
- Specified by:
normsFormatin classCodec
-