java.lang.Object
org.elasticsearch.compute.aggregation.table.RowInTableLookup
All Implemented Interfaces:
Closeable, AutoCloseable, org.elasticsearch.core.Releasable
Direct Known Subclasses:
AscendingSequenceRowInTableLookup, EmptyRowInTableLookup

public abstract sealed class RowInTableLookup extends Object implements org.elasticsearch.core.Releasable permits EmptyRowInTableLookup, AscendingSequenceRowInTableLookup (not exhaustive)
Consumes Pages and looks up each row in a pre-built table, and returns the offsets of each row in the table.
  • Constructor Details

    • RowInTableLookup

      public RowInTableLookup()
  • Method Details

    • lookup

      public abstract org.elasticsearch.core.ReleasableIterator<IntBlock> lookup(Page page, ByteSizeValue targetBlockSize)
      Lookup the values in the Page and, for each row, return the offset in the table that was provided when building the lookup.

      The returned ReleasableIterator may retain a reference to Blocks inside the Page. Close it to release those references.

    • toString

      public abstract String toString()
      Overrides:
      toString in class Object
    • build

      public static RowInTableLookup build(BlockFactory blockFactory, Block[] keys)