类 SimplePartitioner
- java.lang.Object
- org.springframework.batch.core.partition.support.SimplePartitioner
- 所有已实现的接口:
Partitioner
- 直接已知子类:
BasicPartitioner
public class SimplePartitioner extends java.lang.Object implements Partitioner
Simplest possible implementation ofPartitioner
. Just creates a set of emptyExecutionContext
instances, and labels them as{partition0, partition1, ..., partitionN}
, whereN
is the grid size.- 从以下版本开始:
- 2.0
- 作者:
- Dave Syer
构造器概要
构造器 构造器 说明 SimplePartitioner()
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 java.util.Map<java.lang.String,ExecutionContext>
partition(int gridSize)
Create a set of distinctExecutionContext
instances together with a unique identifier for each one.
构造器详细资料
SimplePartitioner
public SimplePartitioner()
方法详细资料
partition
public java.util.Map<java.lang.String,ExecutionContext> partition(int gridSize)
从接口复制的说明:Partitioner
Create a set of distinctExecutionContext
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
在接口中Partitioner
- 参数:
gridSize
- the size of the map to return- 返回:
- a map from identifier to input parameters