public class SqlClientContext extends Object implements AutoCloseable
Also contains anything that a driver may need to share between threads processing queries of logically same client - see JDBC thin driver
| Constructor and Description |
|---|
SqlClientContext(GridKernalContext ctx,
javax.cache.configuration.Factory<GridWorker> orderedBatchWorkerFactory,
boolean distributedJoins,
boolean enforceJoinOrder,
boolean collocated,
boolean replicatedOnly,
boolean lazy,
boolean skipReducerOnUpdate) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
disableStreaming()
Turn off streaming on this client context - with closing all open streamers, if any.
|
void |
enableStreaming(boolean allowOverwrite,
long flushFreq,
int perNodeBufSize,
int perNodeParOps,
boolean ordered)
Turn on streaming on this client context.
|
boolean |
isCollocated() |
boolean |
isDistributedJoins() |
boolean |
isEnforceJoinOrder() |
boolean |
isLazy() |
boolean |
isReplicatedOnly() |
boolean |
isSkipReducerOnUpdate() |
boolean |
isStream() |
boolean |
isStreamOrdered() |
void |
orderedRequestProcessed() |
IgniteDataStreamer<?,?> |
streamerForCache(String cacheName) |
void |
waitTotalProcessedOrderedRequests(long total)
Waits when total processed ordered requests count to be equal to specified value.
|
public SqlClientContext(GridKernalContext ctx, javax.cache.configuration.Factory<GridWorker> orderedBatchWorkerFactory, boolean distributedJoins, boolean enforceJoinOrder, boolean collocated, boolean replicatedOnly, boolean lazy, boolean skipReducerOnUpdate)
ctx - Kernal context.orderedBatchWorkerFactory - Ordered batch worker factory.distributedJoins - Distributed joins flag.enforceJoinOrder - Enforce join order flag.collocated - Collocated flag.replicatedOnly - Replicated caches only flag.lazy - Lazy query execution flag.skipReducerOnUpdate - Skip reducer on update flag.public void enableStreaming(boolean allowOverwrite,
long flushFreq,
int perNodeBufSize,
int perNodeParOps,
boolean ordered)
allowOverwrite - Whether streaming should overwrite existing values.flushFreq - Flush frequency for streamers.perNodeBufSize - Per node streaming buffer size.perNodeParOps - Per node streaming parallel operations number.ordered - Ordered stream flag.public void disableStreaming()
public boolean isCollocated()
public boolean isDistributedJoins()
public boolean isEnforceJoinOrder()
public boolean isReplicatedOnly()
public boolean isLazy()
public boolean isSkipReducerOnUpdate()
public boolean isStream()
public boolean isStreamOrdered()
public IgniteDataStreamer<?,?> streamerForCache(String cacheName)
cacheName - Cache name.public void waitTotalProcessedOrderedRequests(long total)
total - Expected total processed request.public void orderedRequestProcessed()
public void close()
throws Exception
close in interface AutoCloseableException
Follow @ApacheIgnite
Ignite Fabric : ver. 2.6.0 Release Date : July 10 2018