接口 Partitioner
public interface Partitioner
Central strategy interface for creating input parameters for a partitioned step in the form ofExecutionContext
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.- 从以下版本开始:
- 2.0
- 作者:
- Dave Syer
方法概要
所有方法 实例方法 抽象方法 修饰符和类型 方法 说明 java.util.Map<java.lang.String,ExecutionContext>
partition(int gridSize)
Create a set of distinctExecutionContext
instances together with a unique identifier for each one.
方法详细资料
partition
java.util.Map<java.lang.String,ExecutionContext> partition(int gridSize)
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).- 参数:
gridSize
- the size of the map to return- 返回:
- a map from identifier to input parameters