public class BasicPartitioner extends SimplePartitioner
Constructor and Description |
---|
BasicPartitioner() |
Modifier and Type | Method and Description |
---|---|
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. |
public java.util.Map<java.lang.String,ExecutionContext> partition(int gridSize)
Partitioner
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).partition
in interface Partitioner
partition
in class SimplePartitioner
gridSize
- the size of the map to return