public class StreamCombiningIterator extends Object implements Iterator<com.google.cloud.bigquery.storage.v1.ReadRowsResponse>
This is adapted from ServerStream in gax. In comparison toServerStream, this implementation also buffers more a configured number of responses instead of a single one. For connections with high latency between client and server this can processing costs. It also allows combining one or more ReadRows calls into single iterator to potentially increase perceived client throughput if that becomes a bottleneck for processing.
| Modifier and Type | Method and Description |
|---|---|
void |
cancel() |
boolean |
hasNext()
Checks if the stream has been fully consumed or cancelled.
|
com.google.cloud.bigquery.storage.v1.ReadRowsResponse |
next()
Consumes the next response and asynchronously request the next response from the observer.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEachRemaining, removepublic com.google.cloud.bigquery.storage.v1.ReadRowsResponse next()
next in interface Iterator<com.google.cloud.bigquery.storage.v1.ReadRowsResponse>NoSuchElementException - If the stream has been consumed or cancelled.public boolean hasNext()
public void cancel()
Copyright © 2024. All rights reserved.