public final class TruncatePartitioningDTO extends java.lang.Object implements Partitioning
Partitioning.SingleFieldPartitioning, Partitioning.Strategy
Transform.SingleFieldTransform
EMPTY_PARTITIONING
EMPTY_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, wait
assignments, children
references
public 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()
Partitioning
strategy
in interface Partitioning
public void validate(ColumnDTO[] columns) throws java.lang.IllegalArgumentException
validate
in interface Partitioning
columns
- The columns to be validated.java.lang.IllegalArgumentException
- If the columns are invalid, this exception is thrown.