public class GridCacheDistributedQueryManager<K,V> extends GridCacheQueryManager<K,V>
MAX_ITERATORS, qryProccctx, log| Constructor and Description |
|---|
GridCacheDistributedQueryManager() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addQueryFuture(long reqId,
GridCacheDistributedQueryFuture<?,?,?> fut)
Removes query future from futures map.
|
protected GridCacheDistributedQueryFuture<?,?,?> |
getQueryFuture(long reqId)
Gets query future from futures map.
|
void |
loadPage(long id,
GridCacheQueryAdapter<?> qry,
Collection<ClusterNode> nodes,
boolean all)
Loads page.
|
protected boolean |
onFieldsPageReady(boolean loc,
org.apache.ignite.internal.processors.cache.query.GridCacheQueryInfo qryInfo,
List<GridQueryFieldMetadata> metadata,
Collection<?> entities,
Collection<?> data,
boolean finished,
Throwable e) |
protected void |
onKernalStop0(boolean cancel) |
protected boolean |
onPageReady(boolean loc,
org.apache.ignite.internal.processors.cache.query.GridCacheQueryInfo qryInfo,
Collection<?> data,
boolean finished,
Throwable e)
Called when data for page is ready.
|
void |
printMemoryStats()
Prints memory statistics for debugging purposes.
|
CacheQueryFuture<?> |
queryDistributed(GridCacheQueryBean qry,
Collection<ClusterNode> nodes)
Executes distributed query.
|
CacheQueryFuture<?> |
queryFieldsDistributed(GridCacheQueryBean qry,
Collection<ClusterNode> nodes)
Executes distributed fields query.
|
CacheQueryFuture<?> |
queryFieldsLocal(GridCacheQueryBean qry)
Executes distributed fields query.
|
CacheQueryFuture<?> |
queryLocal(GridCacheQueryBean qry)
Executes local query.
|
protected void |
removeQueryFuture(long reqId)
Removes query future from futures map.
|
void |
start0() |
backupsFilter, createFullTextQuery, createScanQuery, createSpiQuery, createSqlFieldsQuery, createSqlFieldsQuery, enabled, metrics, onMetricsUpdate, onSwap, onUndeploy, onUnswap, rebuildAllIndexes, rebuildIndexes, rebuildIndexes, remove, removeFieldsQueryResult, removeQueryResult, resetMetrics, runFieldsQuery, runQuery, size, space, sqlMetadata, stop0, storecontext, kernalStartInfo, kernalStopInfo, log, onKernalStart, onKernalStart0, onKernalStop, start, startInfo, stop, stopInfo, toStringpublic void start0()
throws IgniteCheckedException
start0 in class GridCacheQueryManager<K,V>IgniteCheckedException - If failed.protected void onKernalStop0(boolean cancel)
onKernalStop0 in class GridCacheQueryManager<K,V>cancel - Cancel flag.public void printMemoryStats()
printMemoryStats in interface GridCacheManager<K,V>printMemoryStats in class GridCacheQueryManager<K,V>protected void addQueryFuture(long reqId,
GridCacheDistributedQueryFuture<?,?,?> fut)
reqId - Request id.fut - Query future.protected void removeQueryFuture(long reqId)
reqId - Request id.protected GridCacheDistributedQueryFuture<?,?,?> getQueryFuture(long reqId)
reqId - Request id.protected boolean onPageReady(boolean loc,
org.apache.ignite.internal.processors.cache.query.GridCacheQueryInfo qryInfo,
Collection<?> data,
boolean finished,
Throwable e)
onPageReady in class GridCacheQueryManager<K,V>loc - Local query or not.qryInfo - Query info.data - Result data.finished - Last page or not.e - Exception in case of error.true if page was processed right.protected boolean onFieldsPageReady(boolean loc,
org.apache.ignite.internal.processors.cache.query.GridCacheQueryInfo qryInfo,
@Nullable
List<GridQueryFieldMetadata> metadata,
@Nullable
Collection<?> entities,
@Nullable
Collection<?> data,
boolean finished,
@Nullable
Throwable e)
onFieldsPageReady in class GridCacheQueryManager<K,V>loc - Local query or not.qryInfo - Query info.metadata - Meta data.entities - Indexing entities.data - Data.finished - Last page or not.e - Exception in case of error.true if page was processed right.public CacheQueryFuture<?> queryLocal(GridCacheQueryBean qry)
queryLocal in class GridCacheQueryManager<K,V>qry - Query.public CacheQueryFuture<?> queryDistributed(GridCacheQueryBean qry, Collection<ClusterNode> nodes)
queryDistributed in class GridCacheQueryManager<K,V>qry - Query.nodes - Nodes.public void loadPage(long id,
GridCacheQueryAdapter<?> qry,
Collection<ClusterNode> nodes,
boolean all)
loadPage in class GridCacheQueryManager<K,V>id - Query ID.qry - Query.nodes - Nodes.all - Whether to load all pages.public CacheQueryFuture<?> queryFieldsLocal(GridCacheQueryBean qry)
queryFieldsLocal in class GridCacheQueryManager<K,V>qry - Query.public CacheQueryFuture<?> queryFieldsDistributed(GridCacheQueryBean qry, Collection<ClusterNode> nodes)
queryFieldsDistributed in class GridCacheQueryManager<K,V>qry - Query.nodes - Nodes.
Follow @ApacheIgnite
Ignite Fabric : ver. 1.2.0-incubating Release Date : June 16 2015