public class Partitioning
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static boolean |
hasBucketField(PartitionSpec spec)
Check whether the spec contains a bucketed partition field.
|
static SortOrder |
sortOrderFor(PartitionSpec spec)
Create a sort order that will group data for a partition spec.
|
public static boolean hasBucketField(PartitionSpec spec)
spec
- a partition specpublic static SortOrder sortOrderFor(PartitionSpec spec)
If the partition spec contains bucket columns, the sort order will also have a field to sort by a column that is bucketed in the spec. The column is selected by the highest number of buckets in the transform.
spec
- a partition spec