Module org.elasticsearch.simdvec
Record Class Int7uOSQVectorScorerSupplier.QueryContext
java.lang.Object
java.lang.Record
org.elasticsearch.simdvec.internal.Int7uOSQVectorScorerSupplier.QueryContext
- Enclosing class:
Int7uOSQVectorScorerSupplier
protected static record Int7uOSQVectorScorerSupplier.QueryContext(int ord, float lowerInterval, float upperInterval, float additionalCorrection, int quantizedComponentSum)
extends Record
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedQueryContext(int ord, float lowerInterval, float upperInterval, float additionalCorrection, int quantizedComponentSum) Creates an instance of aQueryContextrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfloatReturns the value of theadditionalCorrectionrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.floatReturns the value of thelowerIntervalrecord component.intord()Returns the value of theordrecord component.intReturns the value of thequantizedComponentSumrecord component.final StringtoString()Returns a string representation of this record class.floatReturns the value of theupperIntervalrecord component.
-
Constructor Details
-
QueryContext
protected QueryContext(int ord, float lowerInterval, float upperInterval, float additionalCorrection, int quantizedComponentSum) Creates an instance of aQueryContextrecord class.- Parameters:
ord- the value for theordrecord componentlowerInterval- the value for thelowerIntervalrecord componentupperInterval- the value for theupperIntervalrecord componentadditionalCorrection- the value for theadditionalCorrectionrecord componentquantizedComponentSum- the value for thequantizedComponentSumrecord 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 '=='. -
ord
public int ord()Returns the value of theordrecord component.- Returns:
- the value of the
ordrecord component
-
lowerInterval
public float lowerInterval()Returns the value of thelowerIntervalrecord component.- Returns:
- the value of the
lowerIntervalrecord component
-
upperInterval
public float upperInterval()Returns the value of theupperIntervalrecord component.- Returns:
- the value of the
upperIntervalrecord component
-
additionalCorrection
public float additionalCorrection()Returns the value of theadditionalCorrectionrecord component.- Returns:
- the value of the
additionalCorrectionrecord component
-
quantizedComponentSum
public int quantizedComponentSum()Returns the value of thequantizedComponentSumrecord component.- Returns:
- the value of the
quantizedComponentSumrecord component
-