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, variant
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
array, array, column, column, columnCount, dict, dict, scalar, scalar, tuple, tuple, type, type, variant, variant
getAsString, getObject, isNull, type
protected final ReaderIndex readerIndex
public RowSetReaderImpl(TupleMetadata schema, ReaderIndex index, AbstractObjectReader[] readers)
public RowSetReaderImpl(TupleMetadata schema, ReaderIndex index, List<AbstractObjectReader> readers)
public boolean next()
RowSetReader
next
in interface RowSetReader
public boolean hasNext()
RowSetReader
RowSetReader.next()
will succeed. Purely optional.hasNext
in interface RowSetReader
public int logicalIndex()
RowSetReader
RowSetReader.offset()
to get the actual row index.logicalIndex
in interface RowSetReader
public int rowCount()
RowSetReader
rowCount
in interface RowSetReader
public int offset()
RowSetReader
offset
in interface RowSetReader
public int hyperVectorIndex()
RowSetReader
hyperVectorIndex
in interface RowSetReader
public void setPosition(int index)
RowSetReader
RowSetReader.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 RowSetReader
index
- the desired index positionpublic ColumnMetadata schema()
schema
in interface ColumnReader
public TupleMetadata tupleSchema()
tupleSchema
in interface TupleReader
public void rewind()
RowSetReader
rewind
in interface RowSetReader
public void newBatch()
RowSetReader
newBatch
in interface RowSetReader
Copyright © 1970 The Apache Software Foundation. All rights reserved.