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

public class DefaultIVFVectorsWriter extends IVFVectorsWriter
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

    Constructors
    Constructor
    Description
    DefaultIVFVectorsWriter(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, ramBytesUsed

    Methods inherited from class org.apache.lucene.codecs.KnnVectorsWriter

    mapOldOrdToNewOrd, merge

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods 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