package org.apache.spark.sql.catalyst.plans.physical
sealed trait Partitioning {
val numPartitions: Int
def satisfies(required: Distribution): Boolean
def compatibleWith(other: Partitioning): Boolean
def guarantees(other: Partitioning): Boolean
}
Partitioning — Specification of Physical Operator’s Output Partitions
Partitioning
is specification that describes how a physical operator's output is split across partitions.
Method | Description |
---|---|
Used mainly in |
|
Used mainly when |
|
Number of partitions that the data is split across Used in:
|
|
Used mainly when |
Partitioning | compatibleWith | guarantees | numPartitions | satisfies |
---|---|---|---|---|
|
Exactly the same |
1 |
|
|
|
|
Input |
|
|
Any |
Any |
Number of partitions of the first |
Any |
|
|
|
Input |
|
|
Always negative |
Always negative |
Input |
|
|
Any |
Any |
1 |
Any |
|
Always negative |
Always negative |
Input |
|