public final class TruncatePartitioningDTO 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[] | fieldName() | 
| java.lang.String | name() | 
| static TruncatePartitioningDTO | of(int width,
  java.lang.String[] fieldName)Constructs a truncate partitioning. | 
| Partitioning.Strategy | strategy()Returns the name of the partitioning strategy. | 
| void | validate(ColumnDTO[] columns)Validates the partitioning columns. | 
| int | width() | 
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitassignments, childrenreferencespublic static TruncatePartitioningDTO of(int width, java.lang.String[] fieldName)
width - The width of the truncate partitioning.fieldName - The name of the field to partition.public int width()
public java.lang.String[] fieldName()
public java.lang.String name()
public Expression[] arguments()
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.