Class Lucene90HnswVectorsWriter
- java.lang.Object
-
- org.apache.lucene.codecs.KnnVectorsWriter
-
- org.apache.lucene.codecs.lucene90.Lucene90HnswVectorsWriter
-
- All Implemented Interfaces:
Closeable
,AutoCloseable
public final class Lucene90HnswVectorsWriter extends KnnVectorsWriter
Writes vector values and knn graphs to index segments.- WARNING: This API is experimental and might change in incompatible ways in the next release.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
void
finish()
Called once at the end before closevoid
writeField(FieldInfo fieldInfo, VectorValues vectors)
Write all values contained in the provided reader-
Methods inherited from class org.apache.lucene.codecs.KnnVectorsWriter
merge
-
-
-
-
Method Detail
-
writeField
public void writeField(FieldInfo fieldInfo, VectorValues vectors) throws IOException
Description copied from class:KnnVectorsWriter
Write all values contained in the provided reader- Specified by:
writeField
in classKnnVectorsWriter
- Throws:
IOException
-
finish
public void finish() throws IOException
Description copied from class:KnnVectorsWriter
Called once at the end before close- Specified by:
finish
in classKnnVectorsWriter
- Throws:
IOException
-
close
public void close() throws IOException
- Throws:
IOException
-
-