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
.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal DocValuesFormat
Encodes/decodes docvaluesfinal FieldInfosFormat
Encodes/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 LiveDocsFormat
Encodes/decodes live docsfinal NormsFormat
Encodes/decodes document normalization valuesfinal PostingsFormat
Encodes/decodes postingsfinal SegmentInfoFormat
Encodes/decodes segment info filefinal StoredFieldsFormat
Encodes/decodes stored fieldsfinal TermVectorsFormat
Encodes/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:Codec
Encodes/decodes stored fields- Specified by:
storedFieldsFormat
in classCodec
-
termVectorsFormat
Description copied from class:Codec
Encodes/decodes term vectors- Specified by:
termVectorsFormat
in classCodec
-
postingsFormat
Description copied from class:Codec
Encodes/decodes postings- Specified by:
postingsFormat
in classCodec
-
fieldInfosFormat
Description copied from class:Codec
Encodes/decodes field infos file- Specified by:
fieldInfosFormat
in classCodec
-
segmentInfoFormat
Description copied from class:Codec
Encodes/decodes segment info file- Specified by:
segmentInfoFormat
in classCodec
-
liveDocsFormat
Description copied from class:Codec
Encodes/decodes live docs- Specified by:
liveDocsFormat
in 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:Codec
Encodes/decodes docvalues- Specified by:
docValuesFormat
in classCodec
-
normsFormat
Description copied from class:Codec
Encodes/decodes document normalization values- Specified by:
normsFormat
in classCodec
-