public class RowSetReaderImpl extends AbstractTupleReader implements RowSetReader
AbstractTupleReader.TupleObjectReader| Modifier and Type | Field and Description |
|---|---|
protected ReaderIndex |
readerIndex |
nullStateReader, readers| Constructor and Description |
|---|
RowSetReaderImpl(TupleMetadata schema,
ReaderIndex index,
AbstractObjectReader[] readers) |
RowSetReaderImpl(TupleMetadata schema,
ReaderIndex index,
List<AbstractObjectReader> readers) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
hasNext()
Convenience method which whether the next call to
RowSetReader.next()
will succeed. |
int |
hyperVectorIndex()
Batch index: 0 for a single batch, batch for the current
row is a hyper-batch.
|
int |
logicalIndex()
Gets the read position within the row set.
|
void |
newBatch()
Bind the reader to a new batch of data.
|
boolean |
next()
Advance to the next position.
|
int |
offset()
The index of the underlying row which may be indexed by an
SV2 or SV4.
|
void |
rewind()
Reset the position to before the first row.
|
int |
rowCount()
Total number of rows in the row set.
|
ColumnMetadata |
schema() |
void |
setPosition(int index)
Sets the iteration position.
|
TupleMetadata |
tupleSchema() |
array, array, bindBuffer, bindIndex, bindNullState, column, column, columnCount, dict, dict, getAsString, getObject, isNull, nullStateReader, reposition, scalar, scalar, tuple, tuple, type, type, type, variant, variantclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitarray, array, column, column, columnCount, dict, dict, scalar, scalar, tuple, tuple, type, type, variant, variantgetAsString, getObject, isNull, typeprotected final ReaderIndex readerIndex
public RowSetReaderImpl(TupleMetadata schema, ReaderIndex index, AbstractObjectReader[] readers)
public RowSetReaderImpl(TupleMetadata schema, ReaderIndex index, List<AbstractObjectReader> readers)
public boolean next()
RowSetReadernext in interface RowSetReaderpublic boolean hasNext()
RowSetReaderRowSetReader.next()
will succeed. Purely optional.hasNext in interface RowSetReaderpublic int logicalIndex()
RowSetReaderRowSetReader.offset() to get the actual row index.logicalIndex in interface RowSetReaderpublic int rowCount()
RowSetReaderrowCount in interface RowSetReaderpublic int offset()
RowSetReaderoffset in interface RowSetReaderpublic int hyperVectorIndex()
RowSetReaderhyperVectorIndex in interface RowSetReaderpublic void setPosition(int index)
RowSetReaderRowSetReader.rowCount() - 1. Set the value to one
less than the position to be read in the next call to
RowSetReader.next(). An index of -1 means before the first row.setPosition in interface RowSetReaderindex - the desired index positionpublic ColumnMetadata schema()
schema in interface ColumnReaderpublic TupleMetadata tupleSchema()
tupleSchema in interface TupleReaderpublic void rewind()
RowSetReaderrewind in interface RowSetReaderpublic void newBatch()
RowSetReadernewBatch in interface RowSetReaderCopyright © 2022 The Apache Software Foundation. All rights reserved.