Class ReaderIndex
java.lang.Object
org.apache.drill.exec.physical.resultSet.model.ReaderIndex
- All Implemented Interfaces:
ColumnReaderIndex
- Direct Known Subclasses:
DirectRowIndex,HyperRowIndex,IndirectRowIndex
Row set index base class used when indexing rows within a row
set for a row set reader. Keeps track of the current position,
which starts before the first row, meaning that the client
must call next() to advance to the first row.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.drill.exec.vector.accessor.ColumnReaderIndex
hyperVectorIndex, offset
-
Field Details
-
position
protected int position -
rowCount
-
-
Constructor Details
-
ReaderIndex
-
-
Method Details
-
set
public void set(int index) -
logicalIndex
public int logicalIndex()- Specified by:
logicalIndexin interfaceColumnReaderIndex
-
size
public int size()- Specified by:
sizein interfaceColumnReaderIndex
-
next
public boolean next()- Specified by:
nextin interfaceColumnReaderIndex
-
hasNext
public boolean hasNext()- Specified by:
hasNextin interfaceColumnReaderIndex
-