Class BasicPartitioner

  • All Implemented Interfaces:
    Partitioner

    public class BasicPartitioner
    extends SimplePartitioner
    Simple partitioner for demonstration purpose.
    Author:
    Mahmoud Ben Hassine
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and TypeMethodDescription
      java.util.Map<java.lang.String,​ExecutionContext>partition​(int gridSize)
      Create a set of distinct ExecutionContext instances together with a unique identifier for each one.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • BasicPartitioner

        public BasicPartitioner()
    • Method Detail

      • partition

        public java.util.Map<java.lang.String,​ExecutionContext> partition​(int gridSize)
        Description copied from interface: Partitioner
        Create a set of distinct ExecutionContext instances together with a unique identifier for each one. The identifiers should be short, mnemonic values, and only have to be unique within the return value (e.g. use an incrementer).
        Specified by:
        partition in interface Partitioner
        Overrides:
        partition in class SimplePartitioner
        Parameters:
        gridSize - the size of the map to return
        Returns:
        a map from identifier to input parameters