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 protectedFlatVectorsFormat()Sole constructor
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description abstract FlatVectorsReaderfieldsReader(SegmentReadState state)Returns aKnnVectorsReaderto read the vectors from the index.abstract FlatVectorsWriterfieldsWriter(SegmentWriteState state)Returns aFlatVectorsWriterto write the vectors to the index.
-
-
-
Method Detail
-
fieldsWriter
public abstract FlatVectorsWriter fieldsWriter(SegmentWriteState state) throws IOException
Returns aFlatVectorsWriterto write the vectors to the index.- Throws:
IOException
-
fieldsReader
public abstract FlatVectorsReader fieldsReader(SegmentReadState state) throws IOException
Returns aKnnVectorsReaderto read the vectors from the index.- Throws:
IOException
-
-