Module org.elasticsearch.compute
Record Class ColumnExtractOperator.Factory
java.lang.Object
java.lang.Record
org.elasticsearch.compute.operator.ColumnExtractOperator.Factory
- All Implemented Interfaces:
Describable,Operator.OperatorFactory
- Enclosing class:
ColumnExtractOperator
public static record ColumnExtractOperator.Factory(ElementType[] types, EvalOperator.ExpressionEvaluator.Factory inputEvalSupplier, Supplier<ColumnExtractOperator.Evaluator> evaluatorSupplier)
extends Record
implements Operator.OperatorFactory
-
Constructor Summary
ConstructorsConstructorDescriptionFactory(ElementType[] types, EvalOperator.ExpressionEvaluator.Factory inputEvalSupplier, Supplier<ColumnExtractOperator.Evaluator> evaluatorSupplier) Creates an instance of aFactoryrecord class. -
Method Summary
Modifier and TypeMethodDescriptiondescribe()Returns a description of the component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of theevaluatorSupplierrecord component.get(DriverContext driverContext) Creates a new intermediate operator.final inthashCode()Returns a hash code value for this object.Returns the value of theinputEvalSupplierrecord component.final StringtoString()Returns a string representation of this record class.types()Returns the value of thetypesrecord component.
-
Constructor Details
-
Factory
public Factory(ElementType[] types, EvalOperator.ExpressionEvaluator.Factory inputEvalSupplier, Supplier<ColumnExtractOperator.Evaluator> evaluatorSupplier) Creates an instance of aFactoryrecord class.- Parameters:
types- the value for thetypesrecord componentinputEvalSupplier- the value for theinputEvalSupplierrecord componentevaluatorSupplier- the value for theevaluatorSupplierrecord component
-
-
Method Details
-
get
Description copied from interface:Operator.OperatorFactoryCreates a new intermediate operator.- Specified by:
getin interfaceOperator.OperatorFactory
-
describe
Description copied from interface:DescribableReturns a description of the component. This description can be more specific than Object::toString.- Specified by:
describein interfaceDescribable- Returns:
- the description
-
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). -
types
Returns the value of thetypesrecord component.- Returns:
- the value of the
typesrecord component
-
inputEvalSupplier
Returns the value of theinputEvalSupplierrecord component.- Returns:
- the value of the
inputEvalSupplierrecord component
-
evaluatorSupplier
Returns the value of theevaluatorSupplierrecord component.- Returns:
- the value of the
evaluatorSupplierrecord component
-