public interface PartitionCoalescer
Modifier and Type | Method and Description |
---|---|
PartitionGroup[] |
coalesce(int maxPartitions,
RDD<?> parent)
Coalesce the partitions of the given RDD.
|
PartitionGroup[] coalesce(int maxPartitions, RDD<?> parent)
maxPartitions
- the maximum number of partitions to have after coalescingparent
- the parent RDD whose partitions to coalescePartitionGroup
s, where each element is itself an array of
Partition
s and represents a partition after coalescing is performed.