Class RangePartitioningDTO
java.lang.Object
org.apache.gravitino.dto.rel.partitioning.RangePartitioningDTO
- All Implemented Interfaces:
Partitioning
,Expression
,Transform
Represents the range partitioning.
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.apache.gravitino.dto.rel.partitioning.Partitioning
Partitioning.SingleFieldPartitioning, Partitioning.Strategy
Nested classes/interfaces inherited from interface org.apache.gravitino.rel.expressions.transforms.Transform
Transform.SingleFieldTransform
-
Field Summary
Fields inherited from interface org.apache.gravitino.rel.expressions.Expression
EMPTY_EXPRESSION, EMPTY_NAMED_REFERENCE
Fields inherited from interface org.apache.gravitino.dto.rel.partitioning.Partitioning
EMPTY_PARTITIONING
-
Method Summary
Modifier and TypeMethodDescriptionString[]
name()
static RangePartitioningDTO
Creates a new RangePartitioningDTO with no pre-assigned partitions.static RangePartitioningDTO
of
(String[] fieldName, RangePartitionDTO[] assignments) Creates a new RangePartitioningDTO.strategy()
Returns the name of the partitioning strategy.void
Validates the partitioning columns.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.apache.gravitino.rel.expressions.Expression
references
-
Method Details
-
of
Creates a new RangePartitioningDTO with no pre-assigned partitions.- Parameters:
fieldName
- The name of the field to partition.- Returns:
- The new RangePartitioningDTO.
-
of
Creates a new RangePartitioningDTO.- Parameters:
fieldName
- The name of the field to partition.assignments
- The pre-assigned range partitions.- Returns:
- The new RangePartitioningDTO.
-
fieldName
- Returns:
- The name of the field to partition.
-
name
-
assignments
- Specified by:
assignments
in interfaceTransform
- Returns:
- The preassigned partitions in the partitioning. Currently, only
Transforms.ListTransform
andTransforms.RangeTransform
need to deal with assignments
-
arguments
-
strategy
Description copied from interface:Partitioning
Returns the name of the partitioning strategy.- Specified by:
strategy
in interfacePartitioning
- Returns:
- The strategy of the partitioning.
-
validate
Validates the partitioning columns.- Specified by:
validate
in interfacePartitioning
- Parameters:
columns
- The columns to be validated.- Throws:
IllegalArgumentException
- If the columns are invalid, this exception is thrown.
-