Record Class EmbeddingOperator.Factory
java.lang.Object
java.lang.Record
org.elasticsearch.xpack.esql.inference.embedding.EmbeddingOperator.Factory
- All Implemented Interfaces:
Describable,Operator.OperatorFactory
- Enclosing class:
EmbeddingOperator
public static record EmbeddingOperator.Factory(InferenceService inferenceService, String inferenceId, ExpressionEvaluator.Factory textEvaluatorFactory, DataType dataType, TimeValue timeout)
extends Record
implements Operator.OperatorFactory
Factory for creating
EmbeddingOperator instances.-
Constructor Summary
ConstructorsConstructorDescriptionFactory(InferenceService inferenceService, String inferenceId, ExpressionEvaluator.Factory textEvaluatorFactory, DataType dataType, TimeValue timeout) Creates an instance of aFactoryrecord class. -
Method Summary
Modifier and TypeMethodDescriptiondataType()Returns the value of thedataTyperecord 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 thetextEvaluatorFactoryrecord component.timeout()Returns the value of thetimeoutrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Factory
public Factory(InferenceService inferenceService, String inferenceId, ExpressionEvaluator.Factory textEvaluatorFactory, DataType dataType, TimeValue timeout) Creates an instance of aFactoryrecord class.- Parameters:
inferenceService- the value for theinferenceServicerecord componentinferenceId- the value for theinferenceIdrecord componenttextEvaluatorFactory- the value for thetextEvaluatorFactoryrecord componentdataType- the value for thedataTyperecord componenttimeout- the value for thetimeoutrecord 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. All components in this record class are compared withObjects::equals(Object,Object). -
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
-
textEvaluatorFactory
Returns the value of thetextEvaluatorFactoryrecord component.- Returns:
- the value of the
textEvaluatorFactoryrecord component
-
dataType
Returns the value of thedataTyperecord component.- Returns:
- the value of the
dataTyperecord component
-
timeout
Returns the value of thetimeoutrecord component.- Returns:
- the value of the
timeoutrecord component
-