public final class IntactPartitioner extends Object implements Partitioner
Partitioner
which makes an output data
from a source task to a single Partition
.Constructor and Description |
---|
IntactPartitioner() |
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.
|
public List<Partition> partition(Iterable elements, int dstParallelism, KeyExtractor keyExtractor)
Partitioner
partition
in interface Partitioner
elements
- the output data from a source task.dstParallelism
- the number of destination tasks.keyExtractor
- extracts keys from elements.Copyright © 2018. All rights reserved.