public class Lucene87Codec extends Codec
If you want to reuse functionality of this codec in another codec, extend
FilterCodec
.
package documentation for file format details.
Modifier and Type | Class and Description |
---|---|
static class |
Lucene87Codec.Mode
Configuration option for the codec.
|
Constructor and Description |
---|
Lucene87Codec()
Instantiates a new codec.
|
Lucene87Codec(Lucene87Codec.Mode mode)
Instantiates a new codec, specifying the stored fields compression
mode to use.
|
Modifier and Type | Method and Description |
---|---|
CompoundFormat |
compoundFormat()
Encodes/decodes compound files
|
DocValuesFormat |
docValuesFormat()
Encodes/decodes docvalues
|
FieldInfosFormat |
fieldInfosFormat()
Encodes/decodes field infos file
|
DocValuesFormat |
getDocValuesFormatForField(String field)
Returns the docvalues format that should be used for writing
new segments of
field . |
PostingsFormat |
getPostingsFormatForField(String field)
Returns the postings format that should be used for writing
new segments of
field . |
LiveDocsFormat |
liveDocsFormat()
Encodes/decodes live docs
|
NormsFormat |
normsFormat()
Encodes/decodes document normalization values
|
PointsFormat |
pointsFormat()
Encodes/decodes points index
|
PostingsFormat |
postingsFormat()
Encodes/decodes postings
|
SegmentInfoFormat |
segmentInfoFormat()
Encodes/decodes segment info file
|
StoredFieldsFormat |
storedFieldsFormat()
Encodes/decodes stored fields
|
TermVectorsFormat |
termVectorsFormat()
Encodes/decodes term vectors
|
availableCodecs, forName, getDefault, getName, reloadCodecs, setDefault, toString
public Lucene87Codec()
public Lucene87Codec(Lucene87Codec.Mode mode)
mode
- stored fields compression mode to use for newly
flushed/merged segments.public final StoredFieldsFormat storedFieldsFormat()
Codec
storedFieldsFormat
in class Codec
public final TermVectorsFormat termVectorsFormat()
Codec
termVectorsFormat
in class Codec
public final PostingsFormat postingsFormat()
Codec
postingsFormat
in class Codec
public final FieldInfosFormat fieldInfosFormat()
Codec
fieldInfosFormat
in class Codec
public final SegmentInfoFormat segmentInfoFormat()
Codec
segmentInfoFormat
in class Codec
public final LiveDocsFormat liveDocsFormat()
Codec
liveDocsFormat
in class Codec
public final CompoundFormat compoundFormat()
Codec
compoundFormat
in class Codec
public final PointsFormat pointsFormat()
Codec
pointsFormat
in class Codec
public PostingsFormat getPostingsFormatForField(String field)
field
.
The default implementation always returns "Lucene84".
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.
public DocValuesFormat getDocValuesFormatForField(String field)
field
.
The default implementation always returns "Lucene80".
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.
public final DocValuesFormat docValuesFormat()
Codec
docValuesFormat
in class Codec
public final NormsFormat normsFormat()
Codec
normsFormat
in class Codec
Copyright © 2000-2021 Apache Software Foundation. All Rights Reserved.