Class BucketPartitioningDTO
java.lang.Object
org.apache.gravitino.dto.rel.partitioning.BucketPartitioningDTO
- All Implemented Interfaces:
Partitioning,Expression,Transform
Data transfer object representing bucket 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[][]Returns the field names.name()intReturns the number of buckets.static BucketPartitioningDTOCreates a new instance ofBucketPartitioningDTO.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
referencesMethods inherited from interface org.apache.gravitino.rel.expressions.transforms.Transform
assignments, children
-
Method Details
-
of
Creates a new instance ofBucketPartitioningDTO.- Parameters:
numBuckets- The number of buckets.fieldNames- The field names.- Returns:
- The new instance.
-
numBuckets
public int numBuckets()Returns the number of buckets.- Returns:
- The number of buckets.
-
fieldNames
Returns the field names.- Returns:
- The field names.
-
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
-