public class GridH2QueryContext extends Object
| Constructor and Description |
|---|
GridH2QueryContext(UUID locNodeId,
UUID nodeId,
long qryId,
GridH2QueryType type) |
GridH2QueryContext(UUID locNodeId,
UUID nodeId,
long qryId,
int segmentId,
GridH2QueryType type) |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
clear(UUID locNodeId,
UUID nodeId,
long qryId,
GridH2QueryType type) |
static void |
clearAfterDeadNode(UUID locNodeId,
UUID nodeId) |
void |
clearContext(boolean nodeStop) |
static void |
clearLocalNodeStop(UUID locNodeId) |
static void |
clearThreadLocal()
Drops current thread local context.
|
DistributedJoinMode |
distributedJoinMode() |
GridH2QueryContext |
distributedJoinMode(DistributedJoinMode distributedJoinMode) |
IndexingQueryFilter |
filter() |
GridH2QueryContext |
filter(IndexingQueryFilter filter) |
static GridH2QueryContext |
get()
Access current thread local query context (if it was set).
|
static GridH2QueryContext |
get(UUID locNodeId,
UUID nodeId,
long qryId,
int segmentId,
GridH2QueryType type)
Access query context from another thread.
|
<T> T |
getSource(UUID ownerId,
int segmentId,
int batchLookupId) |
<T> T |
getStreams(int batchLookupId) |
boolean |
isCleared() |
MapQueryLazyWorker |
lazyWorker() |
GridH2QueryContext |
lazyWorker(MapQueryLazyWorker lazyWorker) |
MvccSnapshot |
mvccSnapshot() |
GridH2QueryContext |
mvccSnapshot(MvccSnapshot mvccSnapshot) |
int |
nextBatchLookupId() |
UUID |
nodeForPartition(int p,
<any> cctx) |
UUID |
originNodeId() |
int |
pageSize() |
GridH2QueryContext |
pageSize(int pageSize) |
Map<UUID,int[]> |
partitionsMap() |
GridH2QueryContext |
partitionsMap(Map<UUID,int[]> partsMap) |
void |
putSource(UUID ownerId,
int segmentId,
int batchLookupId,
Object src) |
void |
putStreams(int batchLookupId,
Object streams) |
GridH2CollocationModel |
queryCollocationModel() |
void |
queryCollocationModel(GridH2CollocationModel qryCollocationMdl) |
long |
queryId() |
GridH2QueryContext |
reservations(List<GridReservable> reservations) |
int |
segment() |
static void |
set(GridH2QueryContext x)
Sets current thread local context.
|
AffinityTopologyVersion |
topologyVersion() |
GridH2QueryContext |
topologyVersion(AffinityTopologyVersion topVer) |
String |
toString() |
GridH2QueryType |
type() |
public GridH2QueryContext(UUID locNodeId, UUID nodeId, long qryId, GridH2QueryType type)
locNodeId - Local node ID.nodeId - The node who initiated the query.qryId - The query ID.type - Query type.public GridH2QueryContext(UUID locNodeId, UUID nodeId, long qryId, int segmentId, GridH2QueryType type)
locNodeId - Local node ID.nodeId - The node who initiated the query.qryId - The query ID.segmentId - Index segment ID.type - Query type.public MvccSnapshot mvccSnapshot()
public GridH2QueryContext mvccSnapshot(MvccSnapshot mvccSnapshot)
mvccSnapshot - Mvcc snapshot.this.public GridH2QueryType type()
public UUID originNodeId()
public long queryId()
public GridH2CollocationModel queryCollocationModel()
public void queryCollocationModel(GridH2CollocationModel qryCollocationMdl)
qryCollocationMdl - Query collocation model.public GridH2QueryContext distributedJoinMode(DistributedJoinMode distributedJoinMode)
distributedJoinMode - Distributed join mode.this.public DistributedJoinMode distributedJoinMode()
public GridH2QueryContext reservations(List<GridReservable> reservations)
reservations - Reserved partitions or group reservations.this.public GridH2QueryContext topologyVersion(AffinityTopologyVersion topVer)
topVer - Topology version.this.public AffinityTopologyVersion topologyVersion()
public GridH2QueryContext partitionsMap(Map<UUID,int[]> partsMap)
partsMap - Partitions map.this.public UUID nodeForPartition(int p, <any> cctx)
p - Partition.cctx - Cache context.public int segment()
public void putStreams(int batchLookupId,
Object streams)
batchLookupId - Batch lookup ID.streams - Range streams.public <T> T getStreams(int batchLookupId)
batchLookupId - Batch lookup ID.public void putSource(UUID ownerId, int segmentId, int batchLookupId, Object src)
ownerId - Owner node ID.segmentId - Index segment ID.batchLookupId - Batch lookup ID.src - Range source.public <T> T getSource(UUID ownerId, int segmentId, int batchLookupId)
ownerId - Owner node ID.segmentId - Index segment ID.batchLookupId - Batch lookup ID.public int nextBatchLookupId()
public static void set(GridH2QueryContext x)
x - Query context.public static void clearThreadLocal()
public static boolean clear(UUID locNodeId, UUID nodeId, long qryId, GridH2QueryType type)
locNodeId - Local node ID.nodeId - The node who initiated the query.qryId - The query ID.type - Query type.True if context was found.public void clearContext(boolean nodeStop)
nodeStop - Node is stopping.public boolean isCleared()
true If the context is cleared.public static void clearAfterDeadNode(UUID locNodeId, UUID nodeId)
locNodeId - Local node ID.nodeId - Dead node ID.public static void clearLocalNodeStop(UUID locNodeId)
locNodeId - Local node ID.public static GridH2QueryContext get()
null if the query runs outside of Ignite context.public static GridH2QueryContext get(UUID locNodeId, UUID nodeId, long qryId, int segmentId, GridH2QueryType type)
locNodeId - Local node ID.nodeId - The node who initiated the query.qryId - The query ID.segmentId - Index segment ID.type - Query type.public IndexingQueryFilter filter()
public GridH2QueryContext filter(IndexingQueryFilter filter)
filter - Filter.this.public int pageSize()
public GridH2QueryContext pageSize(int pageSize)
pageSize - Page size.this.public MapQueryLazyWorker lazyWorker()
null if none.public GridH2QueryContext lazyWorker(MapQueryLazyWorker lazyWorker)
lazyWorker - Lazy worker, if any, or null if none.this.
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 2.7.2-p3 Release Date : April 25 2019