Class DirectRowIndex
java.lang.Object
org.apache.drill.exec.physical.resultSet.model.ReaderIndex
org.apache.drill.exec.physical.resultSet.model.single.DirectRowIndex
- All Implemented Interfaces:
ColumnReaderIndex
Reader index that points directly to each row in the row set.
This index starts with pointing to the -1st row, so that the
reader can require a next() for every row, including
the first. (This is the JDBC RecordSet convention.)
-
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
-
DirectRowIndex
-
-
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
-