Class KeyGroupedPartitioning
Object
org.apache.spark.sql.connector.read.partitioning.KeyGroupedPartitioning
- All Implemented Interfaces:
 Partitioning
Represents a partitioning where rows are split across partitions based on the
 partition transform expressions returned by 
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.
- Since:
 - 3.3.0
 
- 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionkeys()Returns the partition transform expressions for this partitioning.intReturns the number of partitions that the data is split across. 
- 
Constructor Details
- 
KeyGroupedPartitioning
 
 - 
 - 
Method Details
- 
keys
Returns the partition transform expressions for this partitioning. - 
numPartitions
public int numPartitions()Description copied from interface:PartitioningReturns the number of partitions that the data is split across.- Specified by:
 numPartitionsin interfacePartitioning
 
 -