Module org.elasticsearch.compute
Record Class BulkLookupSingleValued
java.lang.Object
java.lang.Record
org.elasticsearch.compute.operator.lookup.BulkLookupSingleValued
- All Implemented Interfaces:
Closeable,AutoCloseable,ExpressionEvaluator,org.elasticsearch.core.Releasable
public record BulkLookupSingleValued(DriverContext context, int channelOffset, Warnings warnings)
extends Record
implements ExpressionEvaluator
Emit page of boolean values where corresponding position in specified channel contains a single value.
Used in AbstractLookupService to filter out false-positive matches when using BulkKeywordLookup optimization.
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.elasticsearch.compute.expression.ExpressionEvaluator
ExpressionEvaluator.Factory -
Constructor Summary
ConstructorsConstructorDescriptionBulkLookupSingleValued(DriverContext context, int channelOffset, Warnings warnings) Creates an instance of aBulkLookupSingleValuedrecord class. -
Method Summary
Modifier and TypeMethodDescriptionlongHeap used by the evaluator excluding any memory that's separately tracked like theBreakingBytesRefBuilderused for string concat.intReturns the value of thechannelOffsetrecord component.voidclose()context()Returns the value of thecontextrecord component.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.warnings()Returns the value of thewarningsrecord component.
-
Constructor Details
-
BulkLookupSingleValued
Creates an instance of aBulkLookupSingleValuedrecord class.- Parameters:
context- the value for thecontextrecord componentchannelOffset- the value for thechannelOffsetrecord componentwarnings- the value for thewarningsrecord 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
-
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. -
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
context
Returns the value of thecontextrecord component.- Returns:
- the value of the
contextrecord component
-
channelOffset
public int channelOffset()Returns the value of thechannelOffsetrecord component.- Returns:
- the value of the
channelOffsetrecord component
-
warnings
Returns the value of thewarningsrecord component.- Returns:
- the value of the
warningsrecord component
-