Class ES814ScalarQuantizedVectorsFormat.ES814ScalarQuantizedVectorsWriter

java.lang.Object
org.apache.lucene.codecs.KnnVectorsWriter
org.apache.lucene.codecs.hnsw.FlatVectorsWriter
org.elasticsearch.index.codec.vectors.ES814ScalarQuantizedVectorsFormat.ES814ScalarQuantizedVectorsWriter
All Implemented Interfaces:
Closeable, AutoCloseable, org.apache.lucene.util.Accountable
Enclosing class:
ES814ScalarQuantizedVectorsFormat

public static final class ES814ScalarQuantizedVectorsFormat.ES814ScalarQuantizedVectorsWriter extends org.apache.lucene.codecs.hnsw.FlatVectorsWriter
  • 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 class org.apache.lucene.codecs.hnsw.FlatVectorsWriter

    vectorsScorer

    Fields inherited from interface org.apache.lucene.util.Accountable

    NULL_ACCOUNTABLE
  • Method Summary

    Modifier and Type
    Method
    Description
    org.apache.lucene.codecs.hnsw.FlatFieldVectorsWriter<?>
    addField(org.apache.lucene.index.FieldInfo fieldInfo)
     
    void
     
    void
     
    void
    flush(int i, org.apache.lucene.index.Sorter.DocMap docMap)
     
    void
    mergeOneField(org.apache.lucene.index.FieldInfo fieldInfo, org.apache.lucene.index.MergeState mergeState)
     
    org.apache.lucene.util.hnsw.CloseableRandomVectorScorerSupplier
    mergeOneFieldToIndex(org.apache.lucene.index.FieldInfo fieldInfo, org.apache.lucene.index.MergeState mergeState)
     
    long
     

    Methods inherited from class org.apache.lucene.codecs.hnsw.FlatVectorsWriter

    getFlatVectorScorer

    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
  • Method Details

    • addField

      public org.apache.lucene.codecs.hnsw.FlatFieldVectorsWriter<?> addField(org.apache.lucene.index.FieldInfo fieldInfo) throws IOException
      Specified by:
      addField in class org.apache.lucene.codecs.hnsw.FlatVectorsWriter
      Throws:
      IOException
    • mergeOneField

      public 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
    • mergeOneFieldToIndex

      public org.apache.lucene.util.hnsw.CloseableRandomVectorScorerSupplier mergeOneFieldToIndex(org.apache.lucene.index.FieldInfo fieldInfo, org.apache.lucene.index.MergeState mergeState) throws IOException
      Specified by:
      mergeOneFieldToIndex in class org.apache.lucene.codecs.hnsw.FlatVectorsWriter
      Throws:
      IOException
    • finish

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

      public void flush(int i, org.apache.lucene.index.Sorter.DocMap docMap) throws IOException
      Specified by:
      flush in class org.apache.lucene.codecs.KnnVectorsWriter
      Throws:
      IOException
    • close

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

      public long ramBytesUsed()