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
-
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, segmentInfoFormat
Methods inherited from class org.apache.lucene.codecs.Codec
availableCodecs, forName, getDefault, getName, reloadCodecs, setDefault
-
Constructor Details
-
AssertingCodec
public AssertingCodec()
-
-
Method Details
-
postingsFormat
- Overrides:
postingsFormat
in classFilterCodec
-
termVectorsFormat
- Overrides:
termVectorsFormat
in classFilterCodec
-
storedFieldsFormat
- Overrides:
storedFieldsFormat
in classFilterCodec
-
docValuesFormat
- Overrides:
docValuesFormat
in classFilterCodec
-
normsFormat
- Overrides:
normsFormat
in classFilterCodec
-
liveDocsFormat
- Overrides:
liveDocsFormat
in classFilterCodec
-
pointsFormat
- Overrides:
pointsFormat
in classFilterCodec
-
knnVectorsFormat
- Overrides:
knnVectorsFormat
in 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"
-