Class Lucene92HnswVectorsWriter
- java.lang.Object
-
- org.apache.lucene.codecs.KnnVectorsWriter
-
- org.apache.lucene.codecs.lucene92.Lucene92HnswVectorsWriter
-
- All Implemented Interfaces:
Closeable,AutoCloseable
public final class Lucene92HnswVectorsWriter 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 voidclose()voidfinish()Called once at the end before closevoidwriteField(FieldInfo fieldInfo, KnnVectorsReader knnVectorsReader)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, KnnVectorsReader knnVectorsReader) throws IOException
Description copied from class:KnnVectorsWriterWrite all values contained in the provided reader- Specified by:
writeFieldin classKnnVectorsWriter- Throws:
IOException
-
finish
public void finish() throws IOExceptionDescription copied from class:KnnVectorsWriterCalled once at the end before close- Specified by:
finishin classKnnVectorsWriter- Throws:
IOException
-
close
public void close() throws IOException- Throws:
IOException
-
-