Record Class LiteralsEvaluator
java.lang.Object
java.lang.Record
org.elasticsearch.xpack.esql.expression.LiteralsEvaluator
- All Implemented Interfaces:
Closeable,AutoCloseable,ExpressionEvaluator,org.elasticsearch.core.Releasable
public record LiteralsEvaluator(BlockFactory blockFactory, Literal lit)
extends Record
implements ExpressionEvaluator
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionLiteralsEvaluator(BlockFactory blockFactory, Literal lit) Creates an instance of aLiteralsEvaluatorrecord class. -
Method Summary
Modifier and TypeMethodDescriptionlongReturns the value of theblockFactoryrecord component.voidclose()final booleanIndicates whether some other object is "equal to" this one.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
-
LiteralsEvaluator
Creates an instance of aLiteralsEvaluatorrecord class.- Parameters:
blockFactory- the value for theblockFactoryrecord componentlit- the value for thelitrecord component
-
-
Method Details
-
eval
- Specified by:
evalin interfaceExpressionEvaluator
-
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. -
baseRamBytesUsed
public long baseRamBytesUsed()- Specified by:
baseRamBytesUsedin interfaceExpressionEvaluator
-
close
public void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Specified by:
closein interfaceorg.elasticsearch.core.Releasable
-
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). -
blockFactory
Returns the value of theblockFactoryrecord component.- Returns:
- the value of the
blockFactoryrecord component
-
lit
Returns the value of thelitrecord component.- Returns:
- the value of the
litrecord component
-