Record Class ToAggregateMetricDouble.LongEvaluator
java.lang.Object
java.lang.Record
org.elasticsearch.xpack.esql.expression.function.scalar.convert.ToAggregateMetricDouble.LongEvaluator
- All Implemented Interfaces:
Closeable,AutoCloseable,EvalOperator.ExpressionEvaluator,org.elasticsearch.core.Releasable
- Enclosing class:
ToAggregateMetricDouble
public static record ToAggregateMetricDouble.LongEvaluator(BlockFactory blockFactory, EvalOperator.ExpressionEvaluator eval)
extends Record
implements EvalOperator.ExpressionEvaluator
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.elasticsearch.compute.operator.EvalOperator.ExpressionEvaluator
EvalOperator.ExpressionEvaluator.Factory -
Constructor Summary
ConstructorsConstructorDescriptionLongEvaluator(BlockFactory blockFactory, EvalOperator.ExpressionEvaluator eval) Creates an instance of aLongEvaluatorrecord class. -
Method Summary
Modifier and TypeMethodDescriptionlongReturns the value of theblockFactoryrecord component.voidclose()final booleanIndicates whether some other object is "equal to" this one.eval()Returns the value of theevalrecord component.final inthashCode()Returns a hash code value for this object.toString()Returns a string representation of this record class.
-
Constructor Details
-
LongEvaluator
Creates an instance of aLongEvaluatorrecord class.- Parameters:
blockFactory- the value for theblockFactoryrecord componenteval- the value for theevalrecord component
-
-
Method Details
-
eval
- Specified by:
evalin interfaceEvalOperator.ExpressionEvaluator
-
baseRamBytesUsed
public long baseRamBytesUsed()- Specified by:
baseRamBytesUsedin interfaceEvalOperator.ExpressionEvaluator
-
close
public void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Specified by:
closein interfaceorg.elasticsearch.core.Releasable
-
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). -
blockFactory
Returns the value of theblockFactoryrecord component.- Returns:
- the value of the
blockFactoryrecord component
-
eval
Returns the value of theevalrecord component.- Returns:
- the value of the
evalrecord component
-