public class NodePageStream<R> extends Object
headPage() that returns a future will be completed with NodePage
of cache query result from single node. A new page requests when previous page was fetched by class consumer.| Constructor and Description |
|---|
NodePageStream(UUID nodeId,
Runnable reqPages,
Runnable cancelPages) |
| Modifier and Type | Method and Description |
|---|---|
void |
addPage(Collection<R> data,
boolean last)
Add new query result page of data.
|
void |
cancel(Throwable err)
Cancel query on all nodes.
|
boolean |
closed() |
boolean |
hasRemotePages() |
CompletableFuture<NodePage<R>> |
headPage()
Returns a last delivered page from this stream.
|
UUID |
nodeId() |
public UUID nodeId()
public CompletableFuture<NodePage<R>> headPage()
public void addPage(Collection<R> data, boolean last)
data - Collection of query result items.last - Whether it is the last page from this node.public void cancel(Throwable err)
public boolean hasRemotePages()
true if there are some undelivered page from the node, otherwise false.public boolean closed()
true if this stream delivers all query results from the node to a consumer.
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 2.15.0 Release Date : April 25 2023