Module org.elasticsearch.server
Class DefaultIVFVectorsWriter
java.lang.Object
org.apache.lucene.codecs.KnnVectorsWriter
org.elasticsearch.index.codec.vectors.IVFVectorsWriter
org.elasticsearch.index.codec.vectors.DefaultIVFVectorsWriter
- All Implemented Interfaces:
Closeable,AutoCloseable,org.apache.lucene.util.Accountable
Default implementation of
IVFVectorsWriter. It uses HierarchicalKMeans algorithm to
partition the vector space, and then stores the centroids and posting list in a sequential
fashion.-
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
ConstructorsConstructorDescriptionDefaultIVFVectorsWriter(org.apache.lucene.index.SegmentWriteState state, org.apache.lucene.codecs.hnsw.FlatVectorsWriter rawVectorDelegate, int vectorPerCluster) -
Method Summary
Methods inherited from class org.elasticsearch.index.codec.vectors.IVFVectorsWriter
addField, close, finish, flush, mergeOneField, ramBytesUsedMethods 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
-
DefaultIVFVectorsWriter
public DefaultIVFVectorsWriter(org.apache.lucene.index.SegmentWriteState state, org.apache.lucene.codecs.hnsw.FlatVectorsWriter rawVectorDelegate, int vectorPerCluster) throws IOException - Throws:
IOException
-