Module org.elasticsearch.compute
Record Class LoadFromPageEvaluator
java.lang.Object
java.lang.Record
org.elasticsearch.compute.expression.LoadFromPageEvaluator
- All Implemented Interfaces:
Closeable,AutoCloseable,ExpressionEvaluator,org.elasticsearch.core.Releasable
ExpressionEvaluator that loads from the Page directly.-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionLoadFromPageEvaluator(int channel) Creates an instance of aLoadFromPageEvaluatorrecord class. -
Method Summary
Modifier and TypeMethodDescriptionlongHeap used by the evaluator excluding any memory that's separately tracked like theBreakingBytesRefBuilderused for string concat.intchannel()Returns the value of thechannelrecord component.voidclose()final booleanIndicates whether some other object is "equal to" this one.Evaluate the expression.final inthashCode()Returns a hash code value for this object.toString()Returns a string representation of this record class.
-
Constructor Details
-
LoadFromPageEvaluator
public LoadFromPageEvaluator(int channel) Creates an instance of aLoadFromPageEvaluatorrecord class.- Parameters:
channel- the value for thechannelrecord component
-
-
Method Details
-
eval
Description copied from interface:ExpressionEvaluatorEvaluate the expression.- Specified by:
evalin interfaceExpressionEvaluator- Returns:
- the returned Block has its own reference and the caller is responsible for releasing it.
-
baseRamBytesUsed
public long baseRamBytesUsed()Description copied from interface:ExpressionEvaluatorHeap used by the evaluator excluding any memory that's separately tracked like theBreakingBytesRefBuilderused for string concat.- Specified by:
baseRamBytesUsedin interfaceExpressionEvaluator
-
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 with '=='. -
channel
public int channel()Returns the value of thechannelrecord component.- Returns:
- the value of the
channelrecord component
-