Class Lucene101Codec
- 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 CompoundFormatEncodes/decodes compound filesfinal DocValuesFormatEncodes/decodes docvaluesfinal FieldInfosFormatEncodes/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 offieldgetPostingsFormatForField(String field) Returns the postings format that should be used for writing new segments offield.final KnnVectorsFormatEncodes/decodes numeric vector fieldsfinal LiveDocsFormatEncodes/decodes live docsfinal NormsFormatEncodes/decodes document normalization valuesfinal PointsFormatEncodes/decodes points indexfinal PostingsFormatEncodes/decodes postingsfinal SegmentInfoFormatEncodes/decodes segment info filefinal StoredFieldsFormatEncodes/decodes stored fieldsfinal TermVectorsFormatEncodes/decodes term vectorsMethods inherited from class org.apache.lucene.codecs.Codec
availableCodecs, forName, getDefault, getName, reloadCodecs, setDefault, toString
-
Constructor Details
-
Lucene101Codec
public Lucene101Codec()Instantiates a new codec. -
Lucene101Codec
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:CodecEncodes/decodes stored fields- Specified by:
storedFieldsFormatin classCodec
-
termVectorsFormat
Description copied from class:CodecEncodes/decodes term vectors- Specified by:
termVectorsFormatin classCodec
-
postingsFormat
Description copied from class:CodecEncodes/decodes postings- Specified by:
postingsFormatin classCodec
-
fieldInfosFormat
Description copied from class:CodecEncodes/decodes field infos file- Specified by:
fieldInfosFormatin classCodec
-
segmentInfoFormat
Description copied from class:CodecEncodes/decodes segment info file- Specified by:
segmentInfoFormatin classCodec
-
liveDocsFormat
Description copied from class:CodecEncodes/decodes live docs- Specified by:
liveDocsFormatin classCodec
-
compoundFormat
Description copied from class:CodecEncodes/decodes compound files- Specified by:
compoundFormatin classCodec
-
pointsFormat
Description copied from class:CodecEncodes/decodes points index- Specified by:
pointsFormatin classCodec
-
knnVectorsFormat
Description copied from class:CodecEncodes/decodes numeric vector fields- Specified by:
knnVectorsFormatin classCodec
-
getPostingsFormatForField
Returns the postings format that should be used for writing new segments offield.The default implementation always returns "Lucene101".
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 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
Description copied from class:CodecEncodes/decodes docvalues- Specified by:
docValuesFormatin classCodec
-
normsFormat
Description copied from class:CodecEncodes/decodes document normalization values- Specified by:
normsFormatin classCodec
-