public class Lucene62Codec extends Codec
If you want to reuse functionality of this codec in another codec, extend
FilterCodec
.
package documentation for file format details.
Constructor and Description |
---|
Lucene62Codec()
Instantiates a new codec.
|
Lucene62Codec(Lucene50StoredFieldsFormat.Mode mode)
Instantiates a new codec, specifying the stored fields compression
mode to use.
|
Modifier and Type | Method and Description |
---|---|
CompoundFormat |
compoundFormat() |
DocValuesFormat |
docValuesFormat() |
FieldInfosFormat |
fieldInfosFormat() |
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() |
NormsFormat |
normsFormat() |
PointsFormat |
pointsFormat() |
PostingsFormat |
postingsFormat() |
SegmentInfoFormat |
segmentInfoFormat() |
StoredFieldsFormat |
storedFieldsFormat() |
TermVectorsFormat |
termVectorsFormat() |
availableCodecs, forName, getDefault, getName, reloadCodecs, setDefault, toString
public Lucene62Codec()
public Lucene62Codec(Lucene50StoredFieldsFormat.Mode mode)
mode
- stored fields compression mode to use for newly
flushed/merged segments.public final StoredFieldsFormat storedFieldsFormat()
storedFieldsFormat
in class Codec
public final TermVectorsFormat termVectorsFormat()
termVectorsFormat
in class Codec
public final PostingsFormat postingsFormat()
postingsFormat
in class Codec
public final FieldInfosFormat fieldInfosFormat()
fieldInfosFormat
in class Codec
public SegmentInfoFormat segmentInfoFormat()
segmentInfoFormat
in class Codec
public final LiveDocsFormat liveDocsFormat()
liveDocsFormat
in class Codec
public final CompoundFormat compoundFormat()
compoundFormat
in class Codec
public final PointsFormat pointsFormat()
pointsFormat
in class Codec
public PostingsFormat getPostingsFormatForField(String field)
field
.
The default implementation always returns "Lucene50".
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 "Lucene54".
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()
docValuesFormat
in class Codec
public NormsFormat normsFormat()
normsFormat
in class Codec
Copyright © 2000-2018 Apache Software Foundation. All Rights Reserved.