java.lang.Object
org.apache.lucene.codecs.hnsw.FlatVectorsFormat
- Direct Known Subclasses:
Lucene99FlatVectorsFormat,Lucene99ScalarQuantizedVectorsFormat
Encodes/decodes per-document vectors and provides a scoring interface for the flat stored vectors
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract FlatVectorsReaderfieldsReader(SegmentReadState state) Returns aKnnVectorsReaderto read the vectors from the index.abstract FlatVectorsWriterfieldsWriter(SegmentWriteState state) Returns aFlatVectorsWriterto write the vectors to the index.
-
Constructor Details
-
FlatVectorsFormat
protected FlatVectorsFormat()Sole constructor
-
-
Method Details
-
fieldsWriter
Returns aFlatVectorsWriterto write the vectors to the index.- Throws:
IOException
-
fieldsReader
Returns aKnnVectorsReaderto read the vectors from the index.- Throws:
IOException
-