Class Lucene90Codec
- 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
Modifier and TypeClassDescriptionstatic enum
Configuration option for the codec. -
Constructor Summary
ConstructorDescriptionInstantiates a new codec.Instantiates a new codec, specifying the stored fields compression mode to use. -
Method Summary
Modifier and TypeMethodDescriptionfinal CompoundFormat
final DocValuesFormat
final FieldInfosFormat
getDocValuesFormatForField
(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 LiveDocsFormat
final NormsFormat
final PointsFormat
final PostingsFormat
final SegmentInfoFormat
final StoredFieldsFormat
final TermVectorsFormat
Methods inherited from class org.apache.lucene.codecs.Codec
availableCodecs, forName, getDefault, getName, reloadCodecs, setDefault, toString
-
Constructor Details
-
Lucene90Codec
public Lucene90Codec()Instantiates a new codec. -
Lucene90Codec
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:
storedFieldsFormat
in classCodec
-
termVectorsFormat
- Specified by:
termVectorsFormat
in classCodec
-
postingsFormat
- Specified by:
postingsFormat
in classCodec
-
fieldInfosFormat
- Specified by:
fieldInfosFormat
in classCodec
-
segmentInfoFormat
- Specified by:
segmentInfoFormat
in classCodec
-
liveDocsFormat
- Specified by:
liveDocsFormat
in classCodec
-
compoundFormat
- Specified by:
compoundFormat
in classCodec
-
pointsFormat
- Specified by:
pointsFormat
in classCodec
-
knnVectorsFormat
- 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 "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
- Specified by:
docValuesFormat
in classCodec
-
normsFormat
- Specified by:
normsFormat
in classCodec
-