Package org.apache.lucene.codecs.hnsw
Class FlatVectorsFormat
- java.lang.Object
-
- org.apache.lucene.codecs.hnsw.FlatVectorsFormat
-
- Direct Known Subclasses:
Lucene99FlatVectorsFormat
,Lucene99ScalarQuantizedVectorsFormat
public abstract class FlatVectorsFormat extends Object
Encodes/decodes per-document vectors and provides a scoring interface for the flat stored vectors- WARNING: This API is experimental and might change in incompatible ways in the next release.
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
FlatVectorsFormat()
Sole constructor
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description abstract FlatVectorsReader
fieldsReader(SegmentReadState state)
Returns aKnnVectorsReader
to read the vectors from the index.abstract FlatVectorsWriter
fieldsWriter(SegmentWriteState state)
Returns aFlatVectorsWriter
to write the vectors to the index.
-
-
-
Method Detail
-
fieldsWriter
public abstract FlatVectorsWriter fieldsWriter(SegmentWriteState state) throws IOException
Returns aFlatVectorsWriter
to write the vectors to the index.- Throws:
IOException
-
fieldsReader
public abstract FlatVectorsReader fieldsReader(SegmentReadState state) throws IOException
Returns aKnnVectorsReader
to read the vectors from the index.- Throws:
IOException
-
-