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(InferenceService inferenceService, String inferenceId, String queryText, List<ExpressionEvaluator.Factory> inputEvaluatorFactories, int scoreChannel, int batchSize)
extends Record
implements Operator.OperatorFactory
Factory for creating
RerankOperator instances.-
Constructor Summary
ConstructorsConstructorDescriptionFactory(InferenceService inferenceService, String inferenceId, String queryText, List<ExpressionEvaluator.Factory> inputEvaluatorFactories, int scoreChannel, int batchSize) Creates an instance of aFactoryrecord class. -
Method Summary
Modifier and TypeMethodDescriptionintReturns the value of thebatchSizerecord component.describe()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 theinferenceServicerecord component.Returns the value of theinputEvaluatorFactoriesrecord component.protected ExpressionEvaluator[]inputEvaluators(DriverContext driverContext) Returns the value of thequeryTextrecord component.intReturns the value of thescoreChannelrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Factory
public Factory(InferenceService inferenceService, String inferenceId, String queryText, List<ExpressionEvaluator.Factory> inputEvaluatorFactories, int scoreChannel, int batchSize) Creates an instance of aFactoryrecord class.- Parameters:
inferenceService- the value for theinferenceServicerecord componentinferenceId- the value for theinferenceIdrecord componentqueryText- the value for thequeryTextrecord componentinputEvaluatorFactories- the value for theinputEvaluatorFactoriesrecord componentscoreChannel- the value for thescoreChannelrecord componentbatchSize- the value for thebatchSizerecord component
-
-
Method Details
-
describe
- Specified by:
describein interfaceDescribable
-
get
- Specified by:
getin interfaceOperator.OperatorFactory
-
inputEvaluators
-
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 '=='. -
inferenceService
Returns the value of theinferenceServicerecord component.- Returns:
- the value of the
inferenceServicerecord 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
-
inputEvaluatorFactories
Returns the value of theinputEvaluatorFactoriesrecord component.- Returns:
- the value of the
inputEvaluatorFactoriesrecord component
-
scoreChannel
public int scoreChannel()Returns the value of thescoreChannelrecord component.- Returns:
- the value of the
scoreChannelrecord component
-
batchSize
public int batchSize()Returns the value of thebatchSizerecord component.- Returns:
- the value of the
batchSizerecord component
-