Package org.apache.spark.rdd
Interface PartitionCoalescer
- All Known Implementing Classes:
DefaultPartitionCoalescer
public interface PartitionCoalescer
::DeveloperApi::
A PartitionCoalescer defines how to coalesce the partitions of a given RDD.
-
Method Summary
Modifier and TypeMethodDescriptionCoalesce the partitions of the given RDD.
-
Method Details
-
coalesce
Coalesce the partitions of the given RDD.- Parameters:
maxPartitions
- the maximum number of partitions to have after coalescingparent
- the parent RDD whose partitions to coalesce- Returns:
- an array of
PartitionGroup
s, where each element is itself an array ofPartition
s and represents a partition after coalescing is performed.
-