Class HyperRowIndex
java.lang.Object
org.apache.drill.exec.physical.resultSet.model.ReaderIndex
org.apache.drill.exec.physical.rowSet.HyperRowIndex
- All Implemented Interfaces:
ColumnReaderIndex
Read-only row index into the hyper row set with batch and index
values mapping via an SV4.
-
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
-
HyperRowIndex
-
-
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
-