Record Class RerankOperator.Factory
java.lang.Object
java.lang.Record
org.elasticsearch.xpack.esql.inference.rerank.RerankOperator.Factory
- All Implemented Interfaces:
Describable,Operator.OperatorFactory
- Enclosing class:
RerankOperator
public static record RerankOperator.Factory(InferenceRunner inferenceRunner, String inferenceId, String queryText, EvalOperator.ExpressionEvaluator.Factory rowEncoderFactory, int scoreChannel)
extends Record
implements Operator.OperatorFactory
Factory for creating
RerankOperator instances-
Constructor Summary
ConstructorsConstructorDescriptionFactory(InferenceRunner inferenceRunner, String inferenceId, String queryText, EvalOperator.ExpressionEvaluator.Factory rowEncoderFactory, int scoreChannel) Creates an instance of aFactoryrecord class. -
Method Summary
Modifier and TypeMethodDescriptiondescribe()final booleanIndicates whether some other object is "equal to" this one.get(DriverContext driverContext) final inthashCode()Returns a hash code value for this object.Returns the value of theinferenceIdrecord component.Returns the value of theinferenceRunnerrecord component.Returns the value of thequeryTextrecord component.Returns the value of therowEncoderFactoryrecord component.intReturns the value of thescoreChannelrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Factory
public Factory(InferenceRunner inferenceRunner, String inferenceId, String queryText, EvalOperator.ExpressionEvaluator.Factory rowEncoderFactory, int scoreChannel) Creates an instance of aFactoryrecord class.- Parameters:
inferenceRunner- the value for theinferenceRunnerrecord componentinferenceId- the value for theinferenceIdrecord componentqueryText- the value for thequeryTextrecord componentrowEncoderFactory- the value for therowEncoderFactoryrecord componentscoreChannel- the value for thescoreChannelrecord component
-
-
Method Details
-
describe
- Specified by:
describein interfaceDescribable
-
get
- Specified by:
getin interfaceOperator.OperatorFactory
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
inferenceRunner
Returns the value of theinferenceRunnerrecord component.- Returns:
- the value of the
inferenceRunnerrecord component
-
inferenceId
Returns the value of theinferenceIdrecord component.- Returns:
- the value of the
inferenceIdrecord component
-
queryText
Returns the value of thequeryTextrecord component.- Returns:
- the value of the
queryTextrecord component
-
rowEncoderFactory
Returns the value of therowEncoderFactoryrecord component.- Returns:
- the value of the
rowEncoderFactoryrecord component
-
scoreChannel
public int scoreChannel()Returns the value of thescoreChannelrecord component.- Returns:
- the value of the
scoreChannelrecord component
-