Module org.elasticsearch.server
Record Class BinaryQuantizer.QueryFactors
java.lang.Object
java.lang.Record
org.elasticsearch.index.codec.vectors.es816.BinaryQuantizer.QueryFactors
- Enclosing class:
BinaryQuantizer
public static record BinaryQuantizer.QueryFactors(int quantizedSum, float distToC, float lower, float width, float normVmC, float vDotC)
extends Record
Factors for quantizing query
-
Constructor Summary
ConstructorsConstructorDescriptionQueryFactors(int quantizedSum, float distToC, float lower, float width, float normVmC, float vDotC) Creates an instance of aQueryFactorsrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfloatdistToC()Returns the value of thedistToCrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.floatlower()Returns the value of thelowerrecord component.floatnormVmC()Returns the value of thenormVmCrecord component.intReturns the value of thequantizedSumrecord component.final StringtoString()Returns a string representation of this record class.floatvDotC()Returns the value of thevDotCrecord component.floatwidth()Returns the value of thewidthrecord component.
-
Constructor Details
-
QueryFactors
public QueryFactors(int quantizedSum, float distToC, float lower, float width, float normVmC, float vDotC) Creates an instance of aQueryFactorsrecord class.- Parameters:
quantizedSum- the value for thequantizedSumrecord componentdistToC- the value for thedistToCrecord componentlower- the value for thelowerrecord componentwidth- the value for thewidthrecord componentnormVmC- the value for thenormVmCrecord componentvDotC- the value for thevDotCrecord component
-
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared with '=='. -
quantizedSum
public int quantizedSum()Returns the value of thequantizedSumrecord component.- Returns:
- the value of the
quantizedSumrecord component
-
distToC
public float distToC()Returns the value of thedistToCrecord component.- Returns:
- the value of the
distToCrecord component
-
lower
public float lower()Returns the value of thelowerrecord component.- Returns:
- the value of the
lowerrecord component
-
width
public float width()Returns the value of thewidthrecord component.- Returns:
- the value of the
widthrecord component
-
normVmC
public float normVmC()Returns the value of thenormVmCrecord component.- Returns:
- the value of the
normVmCrecord component
-
vDotC
public float vDotC()Returns the value of thevDotCrecord component.- Returns:
- the value of the
vDotCrecord component
-