Class Lucene99ScalarQuantizedVectorsWriter.FieldWriter

    • Field Detail

      • SHALLOW_SIZE

        private static final long SHALLOW_SIZE
      • floatVectors

        private final java.util.List<float[]> floatVectors
      • fieldInfo

        private final FieldInfo fieldInfo
      • confidenceInterval

        private final java.lang.Float confidenceInterval
      • bits

        private final byte bits
      • compress

        private final boolean compress
      • normalize

        private final boolean normalize
      • minQuantile

        private float minQuantile
      • maxQuantile

        private float maxQuantile
      • finished

        private boolean finished
    • Method Detail

      • finish

        void finish()
             throws java.io.IOException
        Throws:
        java.io.IOException
      • ramBytesUsed

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

        public void addValue​(int docID,
                             float[] 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<float[]>
        Throws:
        java.io.IOException
      • copyValue

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