Class AssertingKnnVectorsFormat
- java.lang.Object
-
- org.apache.lucene.codecs.KnnVectorsFormat
-
- org.apache.lucene.tests.codecs.asserting.AssertingKnnVectorsFormat
-
- All Implemented Interfaces:
NamedSPILoader.NamedSPI
public class AssertingKnnVectorsFormat extends KnnVectorsFormat
Wraps the default KnnVectorsFormat and provides additional assertions.
-
-
Field Summary
-
Fields inherited from class org.apache.lucene.codecs.KnnVectorsFormat
DEFAULT_MAX_DIMENSIONS, EMPTY
-
-
Constructor Summary
Constructors Constructor Description AssertingKnnVectorsFormat()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description KnnVectorsReader
fieldsReader(SegmentReadState state)
KnnVectorsWriter
fieldsWriter(SegmentWriteState state)
-
Methods inherited from class org.apache.lucene.codecs.KnnVectorsFormat
availableKnnVectorsFormats, forName, getMaxDimensions, getName, reloadKnnVectorsFormat
-
-
-
-
Method Detail
-
fieldsWriter
public KnnVectorsWriter fieldsWriter(SegmentWriteState state) throws IOException
- Specified by:
fieldsWriter
in classKnnVectorsFormat
- Throws:
IOException
-
fieldsReader
public KnnVectorsReader fieldsReader(SegmentReadState state) throws IOException
- Specified by:
fieldsReader
in classKnnVectorsFormat
- Throws:
IOException
-
-