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 aQueryFactors
record class. -
Method Summary
Modifier and TypeMethodDescriptionfloat
distToC()
Returns the value of thedistToC
record component.final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.float
lower()
Returns the value of thelower
record component.float
normVmC()
Returns the value of thenormVmC
record component.int
Returns the value of thequantizedSum
record component.final String
toString()
Returns a string representation of this record class.float
vDotC()
Returns the value of thevDotC
record component.float
width()
Returns the value of thewidth
record component.
-
Constructor Details
-
QueryFactors
public QueryFactors(int quantizedSum, float distToC, float lower, float width, float normVmC, float vDotC) Creates an instance of aQueryFactors
record class.- Parameters:
quantizedSum
- the value for thequantizedSum
record componentdistToC
- the value for thedistToC
record componentlower
- the value for thelower
record componentwidth
- the value for thewidth
record componentnormVmC
- the value for thenormVmC
record componentvDotC
- the value for thevDotC
record 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 thequantizedSum
record component.- Returns:
- the value of the
quantizedSum
record component
-
distToC
public float distToC()Returns the value of thedistToC
record component.- Returns:
- the value of the
distToC
record component
-
lower
public float lower()Returns the value of thelower
record component.- Returns:
- the value of the
lower
record component
-
width
public float width()Returns the value of thewidth
record component.- Returns:
- the value of the
width
record component
-
normVmC
public float normVmC()Returns the value of thenormVmC
record component.- Returns:
- the value of the
normVmC
record component
-
vDotC
public float vDotC()Returns the value of thevDotC
record component.- Returns:
- the value of the
vDotC
record component
-