@InternalApi(value="For internal usage only") public class RowResultScanner<T> extends Object implements ResultScanner<T>
Constructor and Description |
---|
RowResultScanner(com.google.api.gax.rpc.ServerStream<T> stream,
T[] arr) |
Modifier and Type | Method and Description |
---|---|
int |
available()
Check number of rows immediately available.
|
void |
close() |
T |
next()
Read the next row and block until a row is available.
|
T[] |
next(int count)
Read the next N rows where N <= count.
|
public T next()
ResultScanner
next
in interface ResultScanner<T>
public T[] next(int count)
ResultScanner
next
in interface ResultScanner<T>
count
- The number of rows to read.public int available()
ResultScanner
ResultScanner.next()
will not block on network
for at least n results.available
in interface ResultScanner<T>
public void close()
close
in interface Closeable
close
in interface AutoCloseable