Class AssertingCodec
- java.lang.Object
-
- org.apache.lucene.codecs.Codec
-
- org.apache.lucene.codecs.FilterCodec
-
- org.apache.lucene.tests.codecs.asserting.AssertingCodec
-
- All Implemented Interfaces:
NamedSPILoader.NamedSPI
- Direct Known Subclasses:
RandomCodec
public class AssertingCodec extends FilterCodec
Acts like the default codec but with additional asserts.
-
-
Field Summary
-
Fields inherited from class org.apache.lucene.codecs.FilterCodec
delegate
-
-
Constructor Summary
Constructors Constructor Description AssertingCodec()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DocValuesFormatdocValuesFormat()DocValuesFormatgetDocValuesFormatForField(String field)Returns the docvalues format that should be used for writing new segments offield.KnnVectorsFormatgetKnnVectorsFormatForField(String field)Returns the vectors format that should be used for writing new segments offield.PostingsFormatgetPostingsFormatForField(String field)Returns the postings format that should be used for writing new segments offield.KnnVectorsFormatknnVectorsFormat()LiveDocsFormatliveDocsFormat()NormsFormatnormsFormat()PointsFormatpointsFormat()PostingsFormatpostingsFormat()StoredFieldsFormatstoredFieldsFormat()TermVectorsFormattermVectorsFormat()StringtoString()-
Methods inherited from class org.apache.lucene.codecs.FilterCodec
compoundFormat, fieldInfosFormat, segmentInfoFormat
-
Methods inherited from class org.apache.lucene.codecs.Codec
availableCodecs, forName, getDefault, getName, reloadCodecs, setDefault
-
-
-
-
Method Detail
-
postingsFormat
public PostingsFormat postingsFormat()
- Overrides:
postingsFormatin classFilterCodec
-
termVectorsFormat
public TermVectorsFormat termVectorsFormat()
- Overrides:
termVectorsFormatin classFilterCodec
-
storedFieldsFormat
public StoredFieldsFormat storedFieldsFormat()
- Overrides:
storedFieldsFormatin classFilterCodec
-
docValuesFormat
public DocValuesFormat docValuesFormat()
- Overrides:
docValuesFormatin classFilterCodec
-
normsFormat
public NormsFormat normsFormat()
- Overrides:
normsFormatin classFilterCodec
-
liveDocsFormat
public LiveDocsFormat liveDocsFormat()
- Overrides:
liveDocsFormatin classFilterCodec
-
pointsFormat
public PointsFormat pointsFormat()
- Overrides:
pointsFormatin classFilterCodec
-
knnVectorsFormat
public KnnVectorsFormat knnVectorsFormat()
- Overrides:
knnVectorsFormatin classFilterCodec
-
getPostingsFormatForField
public PostingsFormat getPostingsFormatForField(String field)
Returns the postings format that should be used for writing new segments offield.The default implementation always returns "Asserting"
-
getDocValuesFormatForField
public DocValuesFormat getDocValuesFormatForField(String field)
Returns the docvalues format that should be used for writing new segments offield.The default implementation always returns "Asserting"
-
getKnnVectorsFormatForField
public KnnVectorsFormat getKnnVectorsFormatForField(String field)
Returns the vectors format that should be used for writing new segments offield.The default implementation always returns "Asserting"
-
-