Class FunctionPartitioningDTO
java.lang.Object
org.apache.gravitino.dto.rel.partitioning.FunctionPartitioningDTO
- All Implemented Interfaces:
Partitioning
,Expression
,Transform
Data transfer object for function 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 TypeMethodDescriptionargs()
Returns the arguments of the function.Returns the arguments of the function.Returns the name of the function.name()
Returns the name of the function.static FunctionPartitioningDTO
of
(String functionName, FunctionArg... args) Creates a new function partitioning DTO.strategy()
Returns the strategy of the partitioning.void
Validates the function partitioning.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
Methods inherited from interface org.apache.gravitino.rel.expressions.transforms.Transform
assignments, children
-
Method Details
-
of
Creates a new function partitioning DTO.- Parameters:
functionName
- The name of the function.args
- The arguments of the function.- Returns:
- The function partitioning DTO.
-
functionName
Returns the name of the function.- Returns:
- The name of the function.
-
args
Returns the arguments of the function.- Returns:
- The arguments of the function.
-
name
Returns the name of the function. -
arguments
Returns the arguments of the function. -
strategy
Returns the strategy of the partitioning.- Specified by:
strategy
in interfacePartitioning
- Returns:
- The strategy of the partitioning.
-
validate
Validates the function partitioning.- Specified by:
validate
in interfacePartitioning
- Parameters:
columns
- The columns to be validated.- Throws:
IllegalArgumentException
- If the function partitioning is invalid.
-