public interface Partitioner
Partition
s,
according to the number of destination tasks, the key of each element, etc.Modifier and Type | Method and Description |
---|---|
List<Partition> |
partition(Iterable elements,
int dstParallelism,
KeyExtractor keyExtractor)
Divides the output data from a task into multiple blocks.
|
List<Partition> partition(Iterable elements, int dstParallelism, KeyExtractor keyExtractor)
elements
- the output data from a source task.dstParallelism
- the number of destination tasks.keyExtractor
- extracts keys from elements.Copyright © 2018. All rights reserved.