Interface QuantizedVectorsReader

All Superinterfaces:
Accountable, AutoCloseable, Closeable
All Known Implementing Classes:
Lucene104ScalarQuantizedVectorsReader, Lucene99HnswVectorsReader

public interface QuantizedVectorsReader extends Closeable, Accountable
Quantized vector reader
WARNING: This API is experimental and might change in incompatible ways in the next release.
  • Method Details

    • getQuantizedVectorValues

      BaseQuantizedByteVectorValues getQuantizedVectorValues(String fieldName) throws IOException
      Throws:
      IOException
    • getQuantizationState

      ScalarQuantizer getQuantizationState(String fieldName)
    • getRandomVectorScorerSupplierForMerge

      CloseableRandomVectorScorerSupplier getRandomVectorScorerSupplierForMerge(FieldInfo fieldInfo, SegmentWriteState segmentWriteState) throws IOException
      Provides a scorer for merging this quantized vector reader. This way any additional merging logic can be implemented by the user of this class.
      Parameters:
      fieldInfo - fieldInfo of the field to merge
      segmentWriteState - the SegmentWriteState to write temporary files if needed
      Returns:
      a scorer over the newly merged flat vectors, which should be closed as it may hold temporary file handles to read over auxiliary data structures
      Throws:
      IOException - if an I/O error occurs when merging