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.
  • Constructor Details

    • BulkLookupSingleValued

      public BulkLookupSingleValued(DriverContext context, int channelOffset, Warnings warnings)
      Creates an instance of a BulkLookupSingleValued record class.
      Parameters:
      context - the value for the context record component
      channelOffset - the value for the channelOffset record component
      warnings - the value for the warnings record component
  • Method Details

    • eval

      public Block eval(Page page)
      Description copied from interface: ExpressionEvaluator
      Evaluate the expression.
      Specified by:
      eval in interface ExpressionEvaluator
      Returns:
      the returned Block has its own reference and the caller is responsible for releasing it.
    • baseRamBytesUsed

      public long baseRamBytesUsed()
      Description copied from interface: ExpressionEvaluator
      Heap used by the evaluator excluding any memory that's separately tracked like the BreakingBytesRefBuilder used for string concat.
      Specified by:
      baseRamBytesUsed in interface ExpressionEvaluator
    • toString

      public String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • close

      public void close()
      Specified by:
      close in interface AutoCloseable
      Specified by:
      close in interface Closeable
      Specified by:
      close in interface org.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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 with Objects::equals(Object,Object); primitive components are compared with '=='.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • context

      public DriverContext context()
      Returns the value of the context record component.
      Returns:
      the value of the context record component
    • channelOffset

      public int channelOffset()
      Returns the value of the channelOffset record component.
      Returns:
      the value of the channelOffset record component
    • warnings

      public Warnings warnings()
      Returns the value of the warnings record component.
      Returns:
      the value of the warnings record component