public final class RangePartitioningDTO 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() |
RangePartitionDTO[] |
assignments() |
java.lang.String[] |
fieldName() |
java.lang.String |
name() |
static RangePartitioningDTO |
of(java.lang.String[] fieldName)
Creates a new RangePartitioningDTO with no pre-assigned partitions.
|
static RangePartitioningDTO |
of(java.lang.String[] fieldName,
RangePartitionDTO[] assignments)
Creates a new RangePartitioningDTO.
|
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, wait
references
public static RangePartitioningDTO of(java.lang.String[] fieldName)
fieldName
- The name of the field to partition.public static RangePartitioningDTO of(java.lang.String[] fieldName, RangePartitionDTO[] assignments)
fieldName
- The name of the field to partition.assignments
- The pre-assigned range partitions.public java.lang.String[] fieldName()
public java.lang.String name()
public RangePartitionDTO[] assignments()
assignments
in interface Transform
Transforms.ListTransform
and Transforms.RangeTransform
need to deal with
assignmentspublic 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.