Class LuceneOptimizedCodec
java.lang.Object
org.apache.lucene.codecs.Codec
com.apple.foundationdb.record.lucene.codec.LuceneOptimizedCodec
- All Implemented Interfaces:
org.apache.lucene.util.NamedSPILoader.NamedSPI
@AutoService(org.apache.lucene.codecs.Codec.class)
public class LuceneOptimizedCodec
extends org.apache.lucene.codecs.Codec
Codec with a few optimizations for speeding up compound files
sitting on FoundationDB.
Optimizations:
- .cfe file references are not stored
- .cfe file data is serialized as entries on the current compound file reference (.cfs)
- .si file references are not stored
- .si file data is serialized as segmentInfo on the current compound file reference (.cfs)
- .si diagnostic information is not stored
- Removed checksum validation on Compound File Reader
Forwards/backwards compatibility is not supported during transition from the
Lucene87Codec to this implementation unfortunately.
Indexes need to rebuilt before handling search requests.-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.apache.lucene.codecs.CompoundFormatorg.apache.lucene.codecs.DocValuesFormatorg.apache.lucene.codecs.FieldInfosFormatorg.apache.lucene.codecs.DocValuesFormatgetDocValuesFormatForField(String field) org.apache.lucene.codecs.PostingsFormatgetPostingsFormatForField(String field) org.apache.lucene.codecs.LiveDocsFormatorg.apache.lucene.codecs.NormsFormatorg.apache.lucene.codecs.PointsFormatorg.apache.lucene.codecs.PostingsFormatorg.apache.lucene.codecs.SegmentInfoFormatorg.apache.lucene.codecs.StoredFieldsFormatorg.apache.lucene.codecs.TermVectorsFormatMethods inherited from class org.apache.lucene.codecs.Codec
availableCodecs, forName, getDefault, getName, reloadCodecs, setDefault, toString
-
Field Details
-
CODEC
-
-
Constructor Details
-
LuceneOptimizedCodec
public LuceneOptimizedCodec()Instantiates a new codec.The constant "RL" is an arbitrary name for the codec that will be written into the index segment.
-
-
Method Details
-
postingsFormat
public org.apache.lucene.codecs.PostingsFormat postingsFormat()- Specified by:
postingsFormatin classorg.apache.lucene.codecs.Codec
-
docValuesFormat
public org.apache.lucene.codecs.DocValuesFormat docValuesFormat()- Specified by:
docValuesFormatin classorg.apache.lucene.codecs.Codec
-
storedFieldsFormat
public org.apache.lucene.codecs.StoredFieldsFormat storedFieldsFormat()- Specified by:
storedFieldsFormatin classorg.apache.lucene.codecs.Codec
-
termVectorsFormat
public org.apache.lucene.codecs.TermVectorsFormat termVectorsFormat()- Specified by:
termVectorsFormatin classorg.apache.lucene.codecs.Codec
-
fieldInfosFormat
public org.apache.lucene.codecs.FieldInfosFormat fieldInfosFormat()- Specified by:
fieldInfosFormatin classorg.apache.lucene.codecs.Codec
-
segmentInfoFormat
public org.apache.lucene.codecs.SegmentInfoFormat segmentInfoFormat()- Specified by:
segmentInfoFormatin classorg.apache.lucene.codecs.Codec
-
normsFormat
public org.apache.lucene.codecs.NormsFormat normsFormat()- Specified by:
normsFormatin classorg.apache.lucene.codecs.Codec
-
liveDocsFormat
public org.apache.lucene.codecs.LiveDocsFormat liveDocsFormat()- Specified by:
liveDocsFormatin classorg.apache.lucene.codecs.Codec
-
compoundFormat
public org.apache.lucene.codecs.CompoundFormat compoundFormat()- Specified by:
compoundFormatin classorg.apache.lucene.codecs.Codec
-
pointsFormat
public org.apache.lucene.codecs.PointsFormat pointsFormat()- Specified by:
pointsFormatin classorg.apache.lucene.codecs.Codec
-
getPostingsFormatForField
-
getDocValuesFormatForField
-