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 SummaryModifier and TypeMethodDescriptionCoalesce the partitions of the given RDD.
- 
Method Details- 
coalesceCoalesce the partitions of the given RDD.- Parameters:
- maxPartitions- the maximum number of partitions to have after coalescing
- parent- the parent RDD whose partitions to coalesce
- Returns:
- an array of PartitionGroups, where each element is itself an array ofPartitions and represents a partition after coalescing is performed.
 
 
-