Module org.elasticsearch.compute
Record Class RrfConfig
java.lang.Object
java.lang.Record
org.elasticsearch.compute.operator.fuse.RrfConfig
- All Implemented Interfaces:
FuseConfig
-
Field Summary
FieldsFields inherited from interface org.elasticsearch.compute.operator.fuse.FuseConfig
WEIGHTS -
Constructor Summary
Constructors -
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.Returns the value of therankConstantrecord component.final StringtoString()Returns a string representation of this record class.weights()Returns the value of theweightsrecord component.
-
Field Details
-
RANK_CONSTANT
-
DEFAULT_RANK_CONSTANT
-
DEFAULT_CONFIG
-
-
Constructor Details
-
RrfConfig
Creates an instance of aRrfConfigrecord class.- Parameters:
rankConstant- the value for therankConstantrecord componentweights- the value for theweightsrecord 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). -
rankConstant
Returns the value of therankConstantrecord component.- Returns:
- the value of the
rankConstantrecord component
-
weights
Returns the value of theweightsrecord component.- Returns:
- the value of the
weightsrecord component
-