Class Lucene46Codec
java.lang.Object
org.apache.lucene.codecs.Codec
org.apache.lucene.codecs.lucene46.Lucene46Codec
- All Implemented Interfaces:
NamedSPILoader.NamedSPI
Implements the Lucene 4.6 index format, with configurable per-field postings
and docvalues formats.
If you want to reuse functionality of this codec in another codec, extend
FilterCodec.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal DocValuesFormatEncodes/decodes docvaluesfinal FieldInfosFormatEncodes/decodes field infos filegetDocValuesFormatForField(String field) Returns the docvalues 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 LiveDocsFormatEncodes/decodes live docsfinal NormsFormatEncodes/decodes document normalization valuesfinal 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
-
Lucene46Codec
public Lucene46Codec()Sole constructor.
-
-
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
-
getPostingsFormatForField
Returns the postings format that should be used for writing new segments offield. The default implementation always returns "Lucene41" -
getDocValuesFormatForField
Returns the docvalues format that should be used for writing new segments offield. The default implementation always returns "Lucene45" -
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
-