public interface Partitioner
ExecutionContext instances. The usual aim is to
create a set of distinct input values, e.g. a set of non-overlapping primary
key ranges, or a set of unique filenames.| Modifier and Type | Method and Description |
|---|---|
java.util.Map<java.lang.String,org.springframework.batch.item.ExecutionContext> |
partition(int gridSize)
Create a set of distinct
ExecutionContext instances together with
a unique identifier for each one. |
java.util.Map<java.lang.String,org.springframework.batch.item.ExecutionContext> partition(int gridSize)
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).gridSize - the size of the map to return