public class SimplePartitioner extends Object implements Partitioner
Partitioner
. Just creates a set
of empty ExecutionContext
instances, and labels them as
{partition0, partition1, ..., partitionN}
, where N
is the grid
size.Constructor and Description |
---|
SimplePartitioner() |
Modifier and Type | Method and Description |
---|---|
Map<String,ExecutionContext> |
partition(int gridSize)
Create a set of distinct
ExecutionContext instances together with
a unique identifier for each one. |
public Map<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
gridSize
- the size of the map to returnCopyright © 2014 Pivotal. All rights reserved.