Module org.elasticsearch.server
Class IVFVectorsWriter
java.lang.Object
org.apache.lucene.codecs.KnnVectorsWriter
org.elasticsearch.index.codec.vectors.IVFVectorsWriter
- All Implemented Interfaces:
Closeable,AutoCloseable,org.apache.lucene.util.Accountable
- Direct Known Subclasses:
DefaultIVFVectorsWriter
public abstract class IVFVectorsWriter
extends org.apache.lucene.codecs.KnnVectorsWriter
Base class for IVF vectors writer.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.lucene.codecs.KnnVectorsWriter
org.apache.lucene.codecs.KnnVectorsWriter.MergedVectorValues -
Field Summary
Fields inherited from interface org.apache.lucene.util.Accountable
NULL_ACCOUNTABLE -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedIVFVectorsWriter(org.apache.lucene.index.SegmentWriteState state, org.apache.lucene.codecs.hnsw.FlatVectorsWriter rawVectorDelegate) -
Method Summary
Modifier and TypeMethodDescriptionfinal org.apache.lucene.codecs.KnnFieldVectorsWriter<?> addField(org.apache.lucene.index.FieldInfo fieldInfo) final voidclose()final voidfinish()final voidflush(int maxDoc, org.apache.lucene.index.Sorter.DocMap sortMap) final voidmergeOneField(org.apache.lucene.index.FieldInfo fieldInfo, org.apache.lucene.index.MergeState mergeState) final longMethods inherited from class org.apache.lucene.codecs.KnnVectorsWriter
mapOldOrdToNewOrd, mergeMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.lucene.util.Accountable
getChildResources
-
Constructor Details
-
IVFVectorsWriter
protected IVFVectorsWriter(org.apache.lucene.index.SegmentWriteState state, org.apache.lucene.codecs.hnsw.FlatVectorsWriter rawVectorDelegate) throws IOException - Throws:
IOException
-
-
Method Details
-
addField
public final org.apache.lucene.codecs.KnnFieldVectorsWriter<?> addField(org.apache.lucene.index.FieldInfo fieldInfo) throws IOException - Specified by:
addFieldin classorg.apache.lucene.codecs.KnnVectorsWriter- Throws:
IOException
-
flush
public final void flush(int maxDoc, org.apache.lucene.index.Sorter.DocMap sortMap) throws IOException - Specified by:
flushin classorg.apache.lucene.codecs.KnnVectorsWriter- Throws:
IOException
-
mergeOneField
public final void mergeOneField(org.apache.lucene.index.FieldInfo fieldInfo, org.apache.lucene.index.MergeState mergeState) throws IOException - Overrides:
mergeOneFieldin classorg.apache.lucene.codecs.KnnVectorsWriter- Throws:
IOException
-
finish
- Specified by:
finishin classorg.apache.lucene.codecs.KnnVectorsWriter- Throws:
IOException
-
close
- Throws:
IOException
-
ramBytesUsed
public final long ramBytesUsed()
-