public final class BucketPartitioningDTO extends java.lang.Object implements Partitioning
Partitioning.SingleFieldPartitioning, Partitioning.StrategyTransform.SingleFieldTransformEMPTY_PARTITIONINGEMPTY_EXPRESSION, EMPTY_NAMED_REFERENCE| Modifier and Type | Method and Description | 
|---|---|
| Expression[] | arguments() | 
| java.lang.String[][] | fieldNames()Returns the field names. | 
| java.lang.String | name() | 
| int | numBuckets()Returns the number of buckets. | 
| static BucketPartitioningDTO | of(int numBuckets,
  java.lang.String[]... fieldNames)Creates a new instance of  BucketPartitioningDTO. | 
| Partitioning.Strategy | strategy()Returns the name of the partitioning strategy. | 
| void | validate(ColumnDTO[] columns)Validates the partitioning columns. | 
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitassignments, childrenreferencespublic static BucketPartitioningDTO of(int numBuckets, java.lang.String[]... fieldNames)
BucketPartitioningDTO.numBuckets - The number of buckets.fieldNames - The field names.public int numBuckets()
public java.lang.String[][] fieldNames()
public Partitioning.Strategy strategy()
Partitioningstrategy in interface Partitioningpublic void validate(ColumnDTO[] columns) throws java.lang.IllegalArgumentException
validate in interface Partitioningcolumns - The columns to be validated.java.lang.IllegalArgumentException - If the columns are invalid, this exception is thrown.public java.lang.String name()
public Expression[] arguments()