Module org.elasticsearch.compute
Record Class LoadFromPageEvaluator.Factory
java.lang.Object
java.lang.Record
org.elasticsearch.compute.expression.LoadFromPageEvaluator.Factory
- All Implemented Interfaces:
ExpressionEvaluator.Factory
- Enclosing class:
LoadFromPageEvaluator
public static record LoadFromPageEvaluator.Factory(int channel)
extends Record
implements ExpressionEvaluator.Factory
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintchannel()Returns the value of thechannelrecord component.booleantrueif it is safe and fast to evaluate this expression eagerly inExpressionEvaluators that need to be lazy, likeCASE.final booleanIndicates whether some other object is "equal to" this one.get(DriverContext driverContext) final inthashCode()Returns a hash code value for this object.toString()Returns a string representation of this record class.
-
Constructor Details
-
Factory
public Factory(int channel) Creates an instance of aFactoryrecord class.- Parameters:
channel- the value for thechannelrecord component
-
-
Method Details
-
get
- Specified by:
getin interfaceExpressionEvaluator.Factory
-
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. -
eagerEvalSafeInLazy
public boolean eagerEvalSafeInLazy()Description copied from interface:ExpressionEvaluator.Factorytrueif it is safe and fast to evaluate this expression eagerly inExpressionEvaluators that need to be lazy, likeCASE. This defaults tofalse, but expressions that evaluate quickly and can not produce warnings may override this totrueto get a significant speed-up inCASE-like operations.- Specified by:
eagerEvalSafeInLazyin interfaceExpressionEvaluator.Factory
-
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 with '=='. -
channel
public int channel()Returns the value of thechannelrecord component.- Returns:
- the value of the
channelrecord component
-