public class GridCacheDistributedQueryFuture<K,V,R> extends GridCacheQueryFutureAdapter<K,V,R>
cctx, loc, log, qry
Modifier | Constructor and Description |
---|---|
protected |
GridCacheDistributedQueryFuture(GridCacheContext<K,V> ctx,
long reqId,
GridCacheQueryBean qry,
Iterable<ClusterNode> nodes) |
Modifier and Type | Method and Description |
---|---|
void |
awaitFirstPage()
Waits for the first page to be received from remote node(s), if any.
|
protected void |
cancelQuery() |
protected void |
loadAllPages()
Loads all left pages.
|
protected void |
loadPage()
Loads next page.
|
boolean |
onCancelled()
Callback to notify that future is cancelled.
|
boolean |
onDone(Collection<R> res,
Throwable err)
Callback to notify that future is finished.
|
protected void |
onNodeLeft(UUID nodeId) |
protected boolean |
onPage(UUID nodeId,
boolean last) |
void |
onTimeout()
Timeout callback.
|
cancel, close, endTime, enqueue, get, get, getUninterruptibly, next, nextPage, nextPage, onPage, printMemoryStats, query, timeoutId, toString
chain, chain, error, get, ignoreInterrupts, isCancelled, isDone, isFailed, listen, logger, onDone, onDone, onDone, onDone, reset, result
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
isDone
chain, chain, error, get, isCancelled, listen, result
protected GridCacheDistributedQueryFuture(GridCacheContext<K,V> ctx, long reqId, GridCacheQueryBean qry, Iterable<ClusterNode> nodes)
ctx
- Cache context.reqId
- Request ID.qry
- Query.nodes
- Nodes.protected void cancelQuery() throws IgniteCheckedException
cancelQuery
in class GridCacheQueryFutureAdapter<K,V,R>
IgniteCheckedException
- In case of error.protected void onNodeLeft(UUID nodeId)
onNodeLeft
in class GridCacheQueryFutureAdapter<K,V,R>
nodeId
- Removed or failed node Id.public void awaitFirstPage() throws IgniteCheckedException
awaitFirstPage
in class GridCacheQueryFutureAdapter<K,V,R>
IgniteCheckedException
- If query execution failed with an error.protected boolean onPage(UUID nodeId, boolean last)
onPage
in class GridCacheQueryFutureAdapter<K,V,R>
nodeId
- Sender node id.last
- Whether page is last.protected void loadPage()
loadPage
in class GridCacheQueryFutureAdapter<K,V,R>
protected void loadAllPages() throws IgniteInterruptedCheckedException
loadAllPages
in class GridCacheQueryFutureAdapter<K,V,R>
IgniteInterruptedCheckedException
- If thread is interrupted.public boolean onDone(Collection<R> res, Throwable err)
null
exception is passed in
the result value will be ignored.onDone
in class GridCacheQueryFutureAdapter<K,V,R>
res
- Optional result.err
- Optional error.True
if result was set by this call.public boolean onCancelled()
onCancelled
in class GridFutureAdapter<Collection<R>>
True
if cancel flag was set by this call.public void onTimeout()
onTimeout
in interface GridTimeoutObject
onTimeout
in class GridCacheQueryFutureAdapter<K,V,R>
Follow @ApacheIgnite
Ignite Fabric : ver. 2.3.0 Release Date : October 28 2017