Class ListPartitioningDTO
java.lang.Object
org.apache.gravitino.dto.rel.partitioning.ListPartitioningDTO
- All Implemented Interfaces:
Partitioning,Expression,Transform
Data transfer object representing a list partitioning.
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.apache.gravitino.dto.rel.partitioning.Partitioning
Partitioning.SingleFieldPartitioning, Partitioning.StrategyNested 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_REFERENCEFields inherited from interface org.apache.gravitino.dto.rel.partitioning.Partitioning
EMPTY_PARTITIONING -
Method Summary
Modifier and TypeMethodDescriptionString[][]name()static ListPartitioningDTOCreates a new ListPartitioningDTO with no pre-assigned partitions.static ListPartitioningDTOof(String[][] fieldNames, ListPartitionDTO[] assignments) Creates a new ListPartitioningDTO.strategy()Returns the name of the partitioning strategy.voidValidates the partitioning columns.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.gravitino.rel.expressions.Expression
references
-
Method Details
-
of
Creates a new ListPartitioningDTO with no pre-assigned partitions.- Parameters:
fieldNames- The names of the fields to partition.- Returns:
- The new ListPartitioningDTO.
-
of
Creates a new ListPartitioningDTO.- Parameters:
fieldNames- The names of the fields to partition.assignments- The pre-assigned list partitions.- Returns:
- The new ListPartitioningDTO.
-
fieldNames
- Returns:
- The names of the fields to partition.
-
assignments
- Specified by:
assignmentsin interfaceTransform- Returns:
- The preassigned partitions in the partitioning. Currently, only
Transforms.ListTransformandTransforms.RangeTransformneed to deal with assignments
-
strategy
Description copied from interface:PartitioningReturns the name of the partitioning strategy.- Specified by:
strategyin interfacePartitioning- Returns:
- The strategy of the partitioning.
-
validate
Validates the partitioning columns.- Specified by:
validatein interfacePartitioning- Parameters:
columns- The columns to be validated.- Throws:
IllegalArgumentException- If the columns are invalid, this exception is thrown.
-
name
-
arguments
-