Interface QuantizedVectorsReader
- All Superinterfaces:
Accountable,AutoCloseable,Closeable
- All Known Implementing Classes:
Lucene104ScalarQuantizedVectorsReader,Lucene99HnswVectorsReader
Quantized vector reader
- WARNING: This API is experimental and might change in incompatible ways in the next release.
-
Field Summary
Fields inherited from interface org.apache.lucene.util.Accountable
NULL_ACCOUNTABLE -
Method Summary
Modifier and TypeMethodDescriptiongetQuantizationState(String fieldName) getQuantizedVectorValues(String fieldName) getRandomVectorScorerSupplierForMerge(FieldInfo fieldInfo, SegmentWriteState segmentWriteState) Provides a scorer for merging this quantized vector reader.Methods inherited from interface org.apache.lucene.util.Accountable
getChildResources, ramBytesUsed
-
Method Details
-
getQuantizedVectorValues
- Throws:
IOException
-
getQuantizationState
-
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 mergesegmentWriteState- 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
-