Uses of Class
org.apache.lucene.util.ScalarQuantizer
Packages that use ScalarQuantizer
Package
Description
Lucene 9.9 file format.
Some utility classes.
-
Uses of ScalarQuantizer in org.apache.lucene.codecs.lucene99
Fields in org.apache.lucene.codecs.lucene99 declared as ScalarQuantizerModifier and TypeFieldDescriptionprivate final ScalarQuantizer
Lucene99ScalarQuantizedVectorsWriter.OffsetCorrectedQuantizedByteVectorValues.oldScalarQuantizer
private final ScalarQuantizer
Lucene99ScalarQuantizedVectorsWriter.QuantizedFloatVectorValues.quantizer
(package private) final ScalarQuantizer
Lucene99ScalarQuantizedVectorsReader.FieldEntry.scalarQuantizer
private final ScalarQuantizer
Lucene99ScalarQuantizedVectorsWriter.OffsetCorrectedQuantizedByteVectorValues.scalarQuantizer
Methods in org.apache.lucene.codecs.lucene99 that return ScalarQuantizerModifier and TypeMethodDescription(package private) ScalarQuantizer
Lucene99ScalarQuantizedVectorsWriter.FieldWriter.createQuantizer()
Lucene99HnswVectorsReader.getQuantizationState
(String field) Lucene99ScalarQuantizedVectorsReader.getQuantizationState
(String fieldName) QuantizedVectorsReader.getQuantizationState
(String fieldName) private static ScalarQuantizer
Lucene99ScalarQuantizedVectorsWriter.getQuantizedState
(KnnVectorsReader vectorsReader, String fieldName) (package private) static ScalarQuantizer
Lucene99ScalarQuantizedVectorsWriter.mergeAndRecalculateQuantiles
(MergeState mergeState, FieldInfo fieldInfo, float confidenceInterval) (package private) static ScalarQuantizer
Lucene99ScalarQuantizedVectorsWriter.mergeQuantiles
(List<ScalarQuantizer> quantizationStates, List<Integer> segmentSizes, float confidenceInterval) private ScalarQuantizer
Lucene99ScalarQuantizedVectorsWriter.mergeQuantiles
(FieldInfo fieldInfo, MergeState mergeState) Methods in org.apache.lucene.codecs.lucene99 with parameters of type ScalarQuantizerModifier and TypeMethodDescriptionLucene99ScalarQuantizedVectorsWriter.mergeOneFieldToIndex
(SegmentWriteState segmentWriteState, FieldInfo fieldInfo, MergeState mergeState, ScalarQuantizer mergedQuantizationState) Lucene99ScalarQuantizedVectorsWriter.MergedQuantizedVectorValues.mergeQuantizedByteVectorValues
(FieldInfo fieldInfo, MergeState mergeState, ScalarQuantizer scalarQuantizer) private static float
ScalarQuantizedRandomVectorScorer.quantizeQuery
(float[] query, byte[] quantizedQuery, VectorSimilarityFunction similarityFunction, ScalarQuantizer scalarQuantizer) (package private) static boolean
Lucene99ScalarQuantizedVectorsWriter.shouldRecomputeQuantiles
(ScalarQuantizer mergedQuantizationState, List<ScalarQuantizer> quantizationStates) Returns true if the quantiles of the merged state are too far from the quantiles of the individual states.(package private) static boolean
Lucene99ScalarQuantizedVectorsWriter.shouldRequantize
(ScalarQuantizer existingQuantiles, ScalarQuantizer newQuantiles) Returns true if the quantiles of the new quantization state are too far from the quantiles of the existing quantization state.Method parameters in org.apache.lucene.codecs.lucene99 with type arguments of type ScalarQuantizerModifier and TypeMethodDescription(package private) static ScalarQuantizer
Lucene99ScalarQuantizedVectorsWriter.mergeQuantiles
(List<ScalarQuantizer> quantizationStates, List<Integer> segmentSizes, float confidenceInterval) (package private) static boolean
Lucene99ScalarQuantizedVectorsWriter.shouldRecomputeQuantiles
(ScalarQuantizer mergedQuantizationState, List<ScalarQuantizer> quantizationStates) Returns true if the quantiles of the merged state are too far from the quantiles of the individual states.Constructors in org.apache.lucene.codecs.lucene99 with parameters of type ScalarQuantizerModifierConstructorDescriptionprivate
OffsetCorrectedQuantizedByteVectorValues
(QuantizedByteVectorValues in, VectorSimilarityFunction vectorSimilarityFunction, ScalarQuantizer scalarQuantizer, ScalarQuantizer oldScalarQuantizer) QuantizedFloatVectorValues
(FloatVectorValues values, VectorSimilarityFunction vectorSimilarityFunction, ScalarQuantizer quantizer) (package private)
ScalarQuantizedRandomVectorScorer
(VectorSimilarityFunction similarityFunction, ScalarQuantizer scalarQuantizer, RandomAccessQuantizedByteVectorValues values, float[] query) (package private)
ScalarQuantizedRandomVectorScorerSupplier
(VectorSimilarityFunction similarityFunction, ScalarQuantizer scalarQuantizer, RandomAccessQuantizedByteVectorValues values) -
Uses of ScalarQuantizer in org.apache.lucene.util
Methods in org.apache.lucene.util that return ScalarQuantizerModifier and TypeMethodDescriptionstatic ScalarQuantizer
ScalarQuantizer.fromVectors
(FloatVectorValues floatVectorValues, float confidenceInterval) SeefromVectors(FloatVectorValues, float, int)
for details on how the quantiles are calculated.static ScalarQuantizer
ScalarQuantizer.fromVectors
(FloatVectorValues floatVectorValues, float confidenceInterval, int totalVectorCount) This will read the float vector values and calculate the quantiles.(package private) static ScalarQuantizer
ScalarQuantizer.fromVectors
(FloatVectorValues floatVectorValues, float confidenceInterval, int totalVectorCount, int quantizationSampleSize) Methods in org.apache.lucene.util with parameters of type ScalarQuantizerModifier and TypeMethodDescriptionfloat
ScalarQuantizer.recalculateCorrectiveOffset
(byte[] quantizedVector, ScalarQuantizer oldQuantizer, VectorSimilarityFunction similarityFunction) Recalculate the old score corrective value given new current quantiles