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,
@Nullable Boolean dataPageScanEnabled,
@Nullable Integer updateBatchSize) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
@Nullable Boolean |
dataPageScanEnabled() |
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) |
@Nullable Integer |
updateBatchSize() |
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, @Nullable @Nullable Boolean dataPageScanEnabled, @Nullable @Nullable Integer updateBatchSize)
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.dataPageScanEnabled - Enable scan data page mode.updateBatchSize - Size of internal batch for DML queries.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()
@Nullable public @Nullable Boolean dataPageScanEnabled()
null if not set.@Nullable public @Nullable Integer updateBatchSize()
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 Database and Caching Platform : ver. 2.8.1 Release Date : May 21 2020