Class AscendingSequenceRowInTableLookup

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

public final class AscendingSequenceRowInTableLookup extends RowInTableLookup
RowInTableLookup that models an increasing sequence of integers.
  • Constructor Details

    • AscendingSequenceRowInTableLookup

      public AscendingSequenceRowInTableLookup(BlockFactory blockFactory, int min, int max)
  • Method Details

    • lookup

      public org.elasticsearch.core.ReleasableIterator<IntBlock> lookup(Page page, ByteSizeValue targetBlockSize)
      Description copied from class: RowInTableLookup
      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.

      Specified by:
      lookup in class RowInTableLookup
    • toString

      public String toString()
      Specified by:
      toString in class RowInTableLookup
    • close

      public void close()