Module org.elasticsearch.server
Record Class ES818BinaryFlatVectorsScorer.BinaryQueryVector
java.lang.Object
java.lang.Record
org.elasticsearch.index.codec.vectors.es818.ES818BinaryFlatVectorsScorer.BinaryQueryVector
- Enclosing class:
ES818BinaryFlatVectorsScorer
public static record ES818BinaryFlatVectorsScorer.BinaryQueryVector(byte[] vector, org.elasticsearch.index.codec.vectors.es818.OptimizedScalarQuantizer.QuantizationResult quantizationResult)
extends Record
A binarized query representing its quantized form along with factors
-
Constructor Summary
ConstructorsConstructorDescriptionBinaryQueryVector(byte[] vector, org.elasticsearch.index.codec.vectors.es818.OptimizedScalarQuantizer.QuantizationResult quantizationResult) Creates an instance of aBinaryQueryVectorrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.org.elasticsearch.index.codec.vectors.es818.OptimizedScalarQuantizer.QuantizationResultReturns the value of thequantizationResultrecord component.final StringtoString()Returns a string representation of this record class.byte[]vector()Returns the value of thevectorrecord component.
-
Constructor Details
-
BinaryQueryVector
public BinaryQueryVector(byte[] vector, org.elasticsearch.index.codec.vectors.es818.OptimizedScalarQuantizer.QuantizationResult quantizationResult) Creates an instance of aBinaryQueryVectorrecord class.- Parameters:
vector- the value for thevectorrecord componentquantizationResult- the value for thequantizationResultrecord 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 withObjects::equals(Object,Object). -
vector
public byte[] vector()Returns the value of thevectorrecord component.- Returns:
- the value of the
vectorrecord component
-
quantizationResult
public org.elasticsearch.index.codec.vectors.es818.OptimizedScalarQuantizer.QuantizationResult quantizationResult()Returns the value of thequantizationResultrecord component.- Returns:
- the value of the
quantizationResultrecord component
-