@Evolving public class KeyGroupedPartitioning extends Object implements Partitioning
keys.
 
 Note: Data source implementations should make sure for a single partition, all of its rows
 must be evaluated to the same partition value after being applied by
 keys expressions. Different partitions can share the same
 partition value: Spark will group these into a single logical partition during planning phase.
| Constructor and Description | 
|---|
| KeyGroupedPartitioning(Expression[] keys,
                      int numPartitions) | 
| Modifier and Type | Method and Description | 
|---|---|
| Expression[] | keys()Returns the partition transform expressions for this partitioning. | 
| int | numPartitions()Returns the number of partitions that the data is split across. | 
public KeyGroupedPartitioning(Expression[] keys, int numPartitions)
public Expression[] keys()
public int numPartitions()
PartitioningnumPartitions in interface Partitioning