Class ReducePartitionMapper


  • public class ReducePartitionMapper
    extends Object
    Reduce partition mapper.
    • 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.