public class GridReduceQueryExecutor extends Object
| Modifier and Type | Field and Description |
|---|---|
static long |
DFLT_RETRY_TIMEOUT
Default retry timeout.
|
| 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(<any> 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,
MvccQueryTracker mvccTracker) |
void |
releaseRemoteResources(Collection<ClusterNode> nodes,
org.apache.ignite.internal.processors.query.h2.twostep.ReduceQueryRun r,
long qryReqId,
boolean distributedJoins,
MvccQueryTracker mvccTracker)
Release remote resources if needed.
|
boolean |
send(Collection<ClusterNode> nodes,
Message msg,
<any> specialize,
boolean runLocParallel) |
void |
start(GridKernalContext ctx,
IgniteH2Indexing h2) |
static int[] |
toArray(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 static final long DFLT_RETRY_TIMEOUT
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, MvccQueryTracker mvccTracker)
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.mvccTracker - Query tracker.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, MvccQueryTracker mvccTracker)
nodes - Query nodes.r - Query run.qryReqId - Query id.distributedJoins - Distributed join flag.public boolean send(Collection<ClusterNode> nodes, Message msg, <any> specialize, boolean runLocParallel)
nodes - Nodes.msg - Message.specialize - Optional closure to specialize message for each node.runLocParallel - Run local handler in parallel thread.true If all messages sent successfully.public static int[] toArray(IntArray ints)
ints - Ints.public void onDisconnected(<any> 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 Database and Caching Platform : ver. 2.7.2-p3 Release Date : April 25 2019