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

    Constructors
    Modifier
    Constructor
    Description
    protected
    IVFVectorsWriter(org.apache.lucene.index.SegmentWriteState state, org.apache.lucene.codecs.hnsw.FlatVectorsWriter rawVectorDelegate)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    final org.apache.lucene.codecs.KnnFieldVectorsWriter<?>
    addField(org.apache.lucene.index.FieldInfo fieldInfo)
     
    final void
     
    final void
     
    final void
    flush(int maxDoc, org.apache.lucene.index.Sorter.DocMap sortMap)
     
    final void
    mergeOneField(org.apache.lucene.index.FieldInfo fieldInfo, org.apache.lucene.index.MergeState mergeState)
     
    final long
     

    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

    • 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:
      addField in class org.apache.lucene.codecs.KnnVectorsWriter
      Throws:
      IOException
    • flush

      public final void flush(int maxDoc, org.apache.lucene.index.Sorter.DocMap sortMap) throws IOException
      Specified by:
      flush in class org.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:
      mergeOneField in class org.apache.lucene.codecs.KnnVectorsWriter
      Throws:
      IOException
    • finish

      public final void finish() throws IOException
      Specified by:
      finish in class org.apache.lucene.codecs.KnnVectorsWriter
      Throws:
      IOException
    • close

      public final void close() throws IOException
      Throws:
      IOException
    • ramBytesUsed

      public final long ramBytesUsed()