Class IndirectRowIndex

java.lang.Object
org.apache.drill.exec.physical.resultSet.model.ReaderIndex
org.apache.drill.exec.physical.rowSet.IndirectRowIndex
All Implemented Interfaces:
ColumnReaderIndex

public class IndirectRowIndex extends ReaderIndex
Reader index that points to each row indirectly through the selection vector. The offset() method points to the actual data row, while the ReaderIndex.logicalIndex() method gives the position relative to the indirection vector. That is, the position increases monotonically, but the index jumps around as specified by the indirection vector.
  • Constructor Details

  • Method Details

    • offset

      public int offset()
      Description copied from interface: ColumnReaderIndex
      Vector offset to read. For top-level vectors, the offset may be through an indirection (SV2 or SV4). For arrays, the offset is the absolute position, with the vector of the current array element.
      Returns:
      vector read index
    • hyperVectorIndex

      public int hyperVectorIndex()
      Description copied from interface: ColumnReaderIndex
      When used with a hyper-vector (SV4) based batch, returns the index of the current batch within the hyper-batch. If this is a single batch, or a nested index, then always returns 0.
      Returns:
      batch index of the current row within the hyper-batch