public class GridReduceQueryExecutor extends Object
| Constructor and Description |
|---|
GridReduceQueryExecutor(AtomicLong qryIdGen,
GridSpinBusyLock busyLock) |
| Modifier and Type | Method and Description |
|---|---|
void |
cancelQueries(Collection<Long> queries)
Cancel specified queries.
|
Collection<GridRunningQueryInfo> |
longRunningQueries(long duration)
Collect queries that already running more than specified duration.
|
void |
onDisconnected(IgniteFuture<?> reconnectFut) |
void |
onMessage(UUID nodeId,
Object msg) |
Iterator<List<?>> |
query(String schemaName,
GridCacheTwoStepQuery qry,
boolean keepBinary,
boolean enforceJoinOrder,
int timeoutMillis,
GridQueryCancel cancel,
Object[] params,
int[] parts,
boolean lazy) |
void |
releaseRemoteResources(Collection<ClusterNode> nodes,
org.apache.ignite.internal.processors.query.h2.twostep.ReduceQueryRun r,
long qryReqId,
boolean distributedJoins)
Release remote resources if needed.
|
void |
start(GridKernalContext ctx,
IgniteH2Indexing h2) |
static int[] |
toArray(org.h2.util.IntArray ints) |
UpdateResult |
update(String schemaName,
List<Integer> cacheIds,
String selectQry,
Object[] params,
boolean enforceJoinOrder,
int pageSize,
int timeoutMillis,
int[] parts,
boolean isReplicatedOnly,
GridQueryCancel cancel) |
public GridReduceQueryExecutor(AtomicLong qryIdGen, GridSpinBusyLock busyLock)
qryIdGen - Query ID generator.busyLock - Busy lock.public void start(GridKernalContext ctx, IgniteH2Indexing h2) throws IgniteCheckedException
ctx - Context.h2 - H2 Indexing.IgniteCheckedException - If failed.public void onMessage(UUID nodeId, Object msg)
nodeId - Node ID.msg - Message.public Iterator<List<?>> query(String schemaName, GridCacheTwoStepQuery qry, boolean keepBinary, boolean enforceJoinOrder, int timeoutMillis, GridQueryCancel cancel, Object[] params, int[] parts, boolean lazy)
schemaName - Schema name.qry - Query.keepBinary - Keep binary.enforceJoinOrder - Enforce join order of tables.timeoutMillis - Timeout in milliseconds.cancel - Query cancel.params - Query parameters.parts - Partitions.lazy - Lazy execution flag.public UpdateResult update(String schemaName, List<Integer> cacheIds, String selectQry, Object[] params, boolean enforceJoinOrder, int pageSize, int timeoutMillis, int[] parts, boolean isReplicatedOnly, GridQueryCancel cancel)
schemaName - Schema name.cacheIds - Cache ids.selectQry - Select query.params - SQL parameters.enforceJoinOrder - Enforce join order of tables.pageSize - Page size.timeoutMillis - Timeout.parts - Partitions.isReplicatedOnly - Whether query uses only replicated caches.cancel - Cancel state.null when some map node doesn't support distributed DML.public void releaseRemoteResources(Collection<ClusterNode> nodes, org.apache.ignite.internal.processors.query.h2.twostep.ReduceQueryRun r, long qryReqId, boolean distributedJoins)
nodes - Query nodes.r - Query run.qryReqId - Query id.distributedJoins - Distributed join flag.public static int[] toArray(org.h2.util.IntArray ints)
ints - Ints.public void onDisconnected(IgniteFuture<?> reconnectFut)
reconnectFut - Reconnect future.public Collection<GridRunningQueryInfo> longRunningQueries(long duration)
duration - Duration to check.public void cancelQueries(Collection<Long> queries)
queries - Queries IDs to cancel.
Follow @ApacheIgnite
Ignite Fabric : ver. 2.6.0 Release Date : July 10 2018