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) |
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 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, GridCacheContext<?,?> 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.@Nullable public static GridH2QueryContext get()
null if the query runs outside of Ignite context.@Nullable 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 Fabric : ver. 2.6.0 Release Date : July 10 2018