public class GridCacheDistributedQueryFuture<K,V,R> extends GridCacheQueryFutureAdapter<K,V,R>
| Modifier | Constructor and Description |
|---|---|
protected |
GridCacheDistributedQueryFuture(GridCacheContext<K,V> ctx,
long reqId,
GridCacheQueryBean qry,
Collection<ClusterNode> nodes) |
| Modifier and Type | Method and Description |
|---|---|
void |
awaitFirstItemAvailable()
TODO: IGNITE-15728 Provide custom reducer for ScanQueryFallbackClosableIterator.
|
protected void |
cancelQuery(Throwable err)
Cancels query on remote nodes and cleanes owned resources.
|
Collection<R> |
get()
Synchronously waits for completion of the computation and
returns computation result.
|
Collection<R> |
get(long timeout,
TimeUnit unit)
Synchronously waits for completion of the computation for
up to the timeout specified and returns computation result.
|
Collection<R> |
getUninterruptibly()
Synchronously waits for completion of the computation and returns computation result ignoring interrupts.
|
protected void |
onError(Throwable err)
Invokes in case of this future error.
|
protected void |
onMeta(IndexQueryResultMeta metaData)
Handles query meta data from query node.
|
protected void |
onNodeLeft(UUID nodeId)
Callback that invoked in case of a node left cluster.
|
protected void |
onPage(UUID nodeId,
Collection<R> data,
boolean last)
Handles new data page from query node.
|
void |
startQuery()
Send initial query request to query nodes.
|
cacheContext, cancel, close, endTime, fields, logger, next, onDone, onPage, onTimeout, query, timeoutId, toStringchain, chain, chainCompose, chainCompose, error, get, ignoreInterrupts, isCancelled, isDone, isFailed, listen, onCancelled, onDone, onDone, onDone, onDone, reset, resultclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitisDonechain, chain, chainCompose, chainCompose, error, get, isCancelled, listen, resultprotected GridCacheDistributedQueryFuture(GridCacheContext<K,V> ctx, long reqId, GridCacheQueryBean qry, Collection<ClusterNode> nodes)
ctx - Cache context.reqId - Request ID.qry - Query.protected void cancelQuery(Throwable err)
cancelQuery in class GridCacheQueryFutureAdapter<K,V,R>err - If query was cancelled with error.protected void onNodeLeft(UUID nodeId)
onNodeLeft in class GridCacheQueryFutureAdapter<K,V,R>nodeId - Removed or failed node Id.protected void onPage(UUID nodeId, Collection<R> data, boolean last)
onPage in class GridCacheQueryFutureAdapter<K,V,R>protected void onMeta(IndexQueryResultMeta metaData)
onMeta in class GridCacheQueryFutureAdapter<K,V,R>public void awaitFirstItemAvailable()
throws IgniteCheckedException
awaitFirstItemAvailable in class GridCacheQueryFutureAdapter<K,V,R>IgniteCheckedException - If query execution failed with an error.public Collection<R> get() throws IgniteCheckedException
get in interface IgniteInternalFuture<Collection<R>>get in class GridFutureAdapter<Collection<R>>IgniteInterruptedCheckedException - Subclass of IgniteCheckedException thrown if the wait was interrupted.IgniteFutureCancelledCheckedException - Subclass of IgniteCheckedException throws if computation was cancelled.IgniteCheckedException - If computation failed.public Collection<R> get(long timeout, TimeUnit unit) throws IgniteCheckedException
get in interface IgniteInternalFuture<Collection<R>>get in class GridFutureAdapter<Collection<R>>timeout - The maximum time to wait.unit - The time unit of the timeout argument.IgniteInterruptedCheckedException - Subclass of IgniteCheckedException thrown if the wait was interrupted.IgniteFutureTimeoutCheckedException - Subclass of IgniteCheckedException thrown if the wait was timed out.IgniteFutureCancelledCheckedException - Subclass of IgniteCheckedException throws if computation was cancelled.IgniteCheckedException - If computation failed.public Collection<R> getUninterruptibly() throws IgniteCheckedException
getUninterruptibly in interface IgniteInternalFuture<Collection<R>>getUninterruptibly in class GridFutureAdapter<Collection<R>>IgniteFutureCancelledCheckedException - Subclass of IgniteCheckedException throws if computation
was cancelled.IgniteCheckedException - If computation failed.public void startQuery()
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 2.15.0 Release Date : April 25 2023