@InterfaceAudience.Public @InterfaceStability.Evolving public abstract class RowResultIterator extends Object implements Iterator<RowResult>, Iterable<RowResult>
Modifier and Type | Field and Description |
---|---|
protected int |
currentRow |
protected int |
numRows |
protected Schema |
schema |
Modifier | Constructor and Description |
---|---|
protected |
RowResultIterator(long elapsedMillis,
String tsUUID,
Schema schema,
int numRows,
boolean reuseRowResult)
Package private constructor, only meant to be instantiated from AsyncKuduScanner.
|
Modifier and Type | Method and Description |
---|---|
static RowResultIterator |
empty() |
long |
getElapsedMillis()
Get the number of milliseconds elapsed since the RPC was created up to the moment when this
response was created.
|
int |
getNumRows() |
String |
getTsUUID()
Get the identifier of the tablet server that sent the response.
|
boolean |
hasNext() |
Iterator<RowResult> |
iterator() |
void |
remove() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEachRemaining, next
forEach, spliterator
protected final Schema schema
protected final int numRows
protected int currentRow
protected RowResultIterator(long elapsedMillis, String tsUUID, Schema schema, int numRows, boolean reuseRowResult)
elapsedMillis
- time in milliseconds since RPC creation to nowtsUUID
- UUID of the tablet server that handled our requestschema
- schema used to parse the rowsnumRows
- how many rows are contained in the bs slicepublic int getNumRows()
public static RowResultIterator empty()
public long getElapsedMillis()
public String getTsUUID()
null
if the RPC failed before tablet location lookup succeeded.