Class ReducePartitionMapper
- java.lang.Object
-
- org.apache.ignite.internal.processors.query.h2.twostep.ReducePartitionMapper
-
public class ReducePartitionMapper extends Object
Reduce partition mapper.
-
-
Constructor Summary
Constructors Constructor Description ReducePartitionMapper(GridKernalContext ctx, IgniteLogger log)Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description GridCacheContext<?,?>findFirstPartitioned(List<Integer> cacheIds)ReducePartitionMapResultnodesForPartitions(List<Integer> cacheIds, AffinityTopologyVersion topVer, int[] parts, boolean isReplicatedOnly)Evaluates nodes and nodes to partitions map given a list of cache ids, topology version and partitions.
-
-
-
Constructor Detail
-
ReducePartitionMapper
public ReducePartitionMapper(GridKernalContext ctx, IgniteLogger log)
Constructor.- Parameters:
ctx- Kernal context.
-
-
Method Detail
-
nodesForPartitions
public ReducePartitionMapResult nodesForPartitions(List<Integer> cacheIds, AffinityTopologyVersion topVer, int[] parts, boolean isReplicatedOnly)
Evaluates nodes and nodes to partitions map given a list of cache ids, topology version and partitions.- Parameters:
cacheIds- Cache ids.topVer- Topology version.parts- Partitions array.isReplicatedOnly- Allow only replicated caches.- Returns:
- Result.
-
findFirstPartitioned
public GridCacheContext<?,?> findFirstPartitioned(List<Integer> cacheIds)
- Parameters:
cacheIds- Cache IDs.- Returns:
- The first partitioned cache context.
-
-