public abstract class ReaderIndex extends Object implements ColumnReaderIndex
Modifier and Type | Field and Description |
---|---|
protected int |
position |
protected Supplier<Integer> |
rowCount |
Constructor and Description |
---|
ReaderIndex(Supplier<Integer> rowCount) |
Modifier and Type | Method and Description |
---|---|
boolean |
hasNext()
Reports if the index has another item.
|
int |
logicalIndex()
Ordinal index within the batch or array.
|
boolean |
next()
Advances the index to the next position.
|
void |
set(int index) |
int |
size()
Return the number of items that this index indexes: top-level record
count for the root index; total element count for nested arrays.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
hyperVectorIndex, offset
public void set(int index)
public int logicalIndex()
ColumnReaderIndex
logicalIndex
in interface ColumnReaderIndex
public int size()
ColumnReaderIndex
size
in interface ColumnReaderIndex
public boolean next()
ColumnReaderIndex
next
in interface ColumnReaderIndex
public boolean hasNext()
ColumnReaderIndex
hasNext
in interface ColumnReaderIndex
ColumnReaderIndex.next()
would return true.Copyright © 1970 The Apache Software Foundation. All rights reserved.