public class GridCacheDistributedQueryManager<K,V> extends GridCacheQueryManager<K,V>
GridCacheQueryManager.CacheSqlIndexMetadata, GridCacheQueryManager.CacheSqlMetadata, GridCacheQueryManager.QueryResult<K,V>, GridCacheQueryManager.RequestFutureMap, GridCacheQueryManager.ScanQueryIterator<K,V>cctx, log, starting| 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.
|
void |
onDisconnected(IgniteFuture<?> reconnectFut) |
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) |
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.
|
protected void |
removeQueryFuture(long reqId)
Removes query future from futures map.
|
GridCloseableIterator |
scanQueryDistributed(GridCacheQueryAdapter qry,
Collection<ClusterNode> nodes)
Executes distributed SCAN query.
|
void |
start0() |
cacheName, collectMetrics, createFullTextQuery, createScanQuery, createScanQuery, createSpiQuery, detailMetrics, enable, enabled, evictDetailMetrics, localQueryIterators, metrics, queryIterators, queryTopologyVersion, remove, removeFieldsQueryResult, removeQueryResult, resetDetailMetrics, resetMetrics, runFieldsQuery, runQuery, scanQueryLocal, sqlMetadata, sqlMetadataV2, 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 onDisconnected(IgniteFuture<?> reconnectFut)
onDisconnected in interface GridCacheManager<K,V>onDisconnected in class GridCacheManagerAdapter<K,V>reconnectFut - Reconnect future.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
@Nullable List<GridQueryFieldMetadata> metadata,
@Nullable
@Nullable Collection<?> entities,
@Nullable
@Nullable Collection<?> data,
boolean finished,
@Nullable
@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<?> queryDistributed(GridCacheQueryBean qry, Collection<ClusterNode> nodes)
queryDistributed in class GridCacheQueryManager<K,V>qry - Query.nodes - Nodes.public GridCloseableIterator scanQueryDistributed(GridCacheQueryAdapter qry, Collection<ClusterNode> nodes) throws IgniteCheckedException
scanQueryDistributed in class GridCacheQueryManager<K,V>qry - Query.nodes - Nodes.IgniteCheckedException - If failed.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 Database and Caching Platform : ver. 2.9.1 Release Date : December 9 2020