Class IndirectRowIndex
java.lang.Object
org.apache.drill.exec.physical.resultSet.model.ReaderIndex
org.apache.drill.exec.physical.rowSet.IndirectRowIndex
- All Implemented Interfaces:
ColumnReaderIndex
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.-
Field Summary
Fields inherited from class org.apache.drill.exec.physical.resultSet.model.ReaderIndex
position, rowCount
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
When used with a hyper-vector (SV4) based batch, returns the index of the current batch within the hyper-batch.int
offset()
Vector offset to read.Methods inherited from class org.apache.drill.exec.physical.resultSet.model.ReaderIndex
hasNext, logicalIndex, next, set, size
-
Constructor Details
-
IndirectRowIndex
-
-
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
-