Package org.apache.lucene.codecs
Class KnnVectorsWriter
- java.lang.Object
-
- org.apache.lucene.codecs.KnnVectorsWriter
-
- All Implemented Interfaces:
Closeable
,AutoCloseable
- Direct Known Subclasses:
Lucene90HnswVectorsWriter
public abstract class KnnVectorsWriter extends Object implements Closeable
Writes vectors to an index.
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
KnnVectorsWriter()
Sole constructor
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract void
finish()
Called once at the end before closevoid
merge(MergeState mergeState)
Merge the vector values from multiple segments, for all fieldsabstract void
writeField(FieldInfo fieldInfo, VectorValues values)
Write all values contained in the provided reader
-
-
-
Method Detail
-
writeField
public abstract void writeField(FieldInfo fieldInfo, VectorValues values) throws IOException
Write all values contained in the provided reader- Throws:
IOException
-
finish
public abstract void finish() throws IOException
Called once at the end before close- Throws:
IOException
-
merge
public void merge(MergeState mergeState) throws IOException
Merge the vector values from multiple segments, for all fields- Throws:
IOException
-
-