Record Class LiteralsEvaluator.Factory
java.lang.Object
java.lang.Record
org.elasticsearch.xpack.esql.expression.LiteralsEvaluator.Factory
- All Implemented Interfaces:
ExpressionEvaluator.Factory
- Enclosing class:
LiteralsEvaluator
public static record LiteralsEvaluator.Factory(Literal lit)
extends Record
implements ExpressionEvaluator.Factory
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanfinal booleanIndicates whether some other object is "equal to" this one.get(DriverContext context) final inthashCode()Returns a hash code value for this object.lit()Returns the value of thelitrecord component.toString()Returns a string representation of this record class.
-
Constructor Details
-
Factory
Creates an instance of aFactoryrecord class.- Parameters:
lit- the value for thelitrecord 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()- 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 withObjects::equals(Object,Object). -
lit
Returns the value of thelitrecord component.- Returns:
- the value of the
litrecord component
-