Class DistributedJoinContext
- java.lang.Object
-
- org.apache.ignite.internal.processors.query.h2.opt.join.DistributedJoinContext
-
public class DistributedJoinContext extends Object
Context for distributed joins.
-
-
Constructor Summary
Constructors Constructor Description DistributedJoinContext(AffinityTopologyVersion topVer, Map<UUID,int[]> partsMap, UUID originNodeId, long qryId, int segment, int pageSize)Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcancel()Mark as cleared.<T> TgetSource(UUID ownerId, int segmentId, int batchLookupId)<T> TgetStreams(int batchLookupId)booleanisCancelled()intnextBatchLookupId()UUIDnodeForPartition(int p, GridCacheContext<?,?> cctx)UUIDoriginNodeId()intpageSize()Map<UUID,int[]>partitionsMap()voidputSource(UUID ownerId, int segmentId, int batchLookupId, Object src)voidputStreams(int batchLookupId, Object streams)longqueryId()intsegment()AffinityTopologyVersiontopologyVersion()StringtoString()
-
-
-
Constructor Detail
-
DistributedJoinContext
public DistributedJoinContext(AffinityTopologyVersion topVer, Map<UUID,int[]> partsMap, UUID originNodeId, long qryId, int segment, int pageSize)
Constructor.- Parameters:
topVer- Topology version.partsMap- Partitions map.originNodeId- ID of the node started the query.qryId- Query ID.segment- Segment.pageSize- Pahe size.
-
-
Method Detail
-
topologyVersion
public AffinityTopologyVersion topologyVersion()
- Returns:
- Affinity topology version.
-
originNodeId
public UUID originNodeId()
- Returns:
- Origin node ID.
-
queryId
public long queryId()
- Returns:
- Query request ID.
-
segment
public int segment()
- Returns:
- index segment ID.
-
pageSize
public int pageSize()
- Returns:
- Page size.
-
nodeForPartition
public UUID nodeForPartition(int p, GridCacheContext<?,?> cctx)
- Parameters:
p- Partition.cctx- Cache context.- Returns:
- Owning node ID.
-
putStreams
public void putStreams(int batchLookupId, Object streams)- Parameters:
batchLookupId- Batch lookup ID.streams- Range streams.
-
getStreams
public <T> T getStreams(int batchLookupId)
- Parameters:
batchLookupId- Batch lookup ID.- Returns:
- Range streams.
-
putSource
public void putSource(UUID ownerId, int segmentId, int batchLookupId, Object src)
- Parameters:
ownerId- Owner node ID.segmentId- Index segment ID.batchLookupId- Batch lookup ID.src- Range source.
-
getSource
public <T> T getSource(UUID ownerId, int segmentId, int batchLookupId)
- Parameters:
ownerId- Owner node ID.segmentId- Index segment ID.batchLookupId- Batch lookup ID.- Returns:
- Range source.
-
nextBatchLookupId
public int nextBatchLookupId()
- Returns:
- Next batch ID.
-
isCancelled
public boolean isCancelled()
- Returns:
- Cleared flag.
-
cancel
public void cancel()
Mark as cleared.
-
-