Class Lucene99HnswVectorsWriter.FieldWriter<T>

    • Field Detail

      • SHALLOW_SIZE

        private static final long SHALLOW_SIZE
      • fieldInfo

        private final FieldInfo fieldInfo
      • vectors

        private final java.util.List<T> vectors
      • lastDocID

        private int lastDocID
      • node

        private int node
    • Constructor Detail

      • FieldWriter

        FieldWriter​(FlatVectorsScorer scorer,
                    FieldInfo fieldInfo,
                    int M,
                    int beamWidth,
                    InfoStream infoStream)
             throws java.io.IOException
        Throws:
        java.io.IOException
    • Method Detail

      • addValue

        public void addValue​(int docID,
                             T vectorValue)
                      throws java.io.IOException
        Description copied from class: KnnFieldVectorsWriter
        Add new docID with its vector value to the given field for indexing. Doc IDs must be added in increasing order.
        Specified by:
        addValue in class KnnFieldVectorsWriter<T>
        Throws:
        java.io.IOException
      • copyValue

        public T copyValue​(T vectorValue)
        Description copied from class: KnnFieldVectorsWriter
        Used to copy values being indexed to internal storage.
        Specified by:
        copyValue in class KnnFieldVectorsWriter<T>
        Parameters:
        vectorValue - an array containing the vector value to add
        Returns:
        a copy of the value; a new array
      • ramBytesUsed

        public long ramBytesUsed()
        Description copied from interface: Accountable
        Return the memory usage of this object in bytes. Negative values are illegal.