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
Acts like the default codec but with additional asserts.
-
Field Summary
Fields inherited from class org.apache.lucene.codecs.FilterCodec
delegate -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetDocValuesFormatForField(String field) Returns the docvalues format that should be used for writing new segments offield.Returns the vectors 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.toString()Methods inherited from class org.apache.lucene.codecs.FilterCodec
compoundFormat, fieldInfosFormat, segmentInfoFormatMethods inherited from class org.apache.lucene.codecs.Codec
availableCodecs, forName, getDefault, getName, reloadCodecs, setDefault
-
Constructor Details
-
AssertingCodec
public AssertingCodec()
-
-
Method Details
-
postingsFormat
- Overrides:
postingsFormatin classFilterCodec
-
termVectorsFormat
- Overrides:
termVectorsFormatin classFilterCodec
-
storedFieldsFormat
- Overrides:
storedFieldsFormatin classFilterCodec
-
docValuesFormat
- Overrides:
docValuesFormatin classFilterCodec
-
normsFormat
- Overrides:
normsFormatin classFilterCodec
-
liveDocsFormat
- Overrides:
liveDocsFormatin classFilterCodec
-
pointsFormat
- Overrides:
pointsFormatin classFilterCodec
-
knnVectorsFormat
- Overrides:
knnVectorsFormatin classFilterCodec
-
toString
-
getPostingsFormatForField
Returns the postings format that should be used for writing new segments offield.The default implementation always returns "Asserting"
-
getDocValuesFormatForField
Returns the docvalues format that should be used for writing new segments offield.The default implementation always returns "Asserting"
-
getKnnVectorsFormatForField
Returns the vectors format that should be used for writing new segments offield.The default implementation always returns "Asserting"
-