Interface Transform
- All Superinterfaces:
Expression
- All Known Subinterfaces:
Partitioning
- All Known Implementing Classes:
BucketPartitioningDTO,DayPartitioningDTO,FunctionPartitioningDTO,HourPartitioningDTO,IdentityPartitioningDTO,ListPartitioningDTO,MonthPartitioningDTO,Partitioning.SingleFieldPartitioning,RangePartitioningDTO,Transform.SingleFieldTransform,Transforms.ApplyTransform,Transforms.BucketTransform,Transforms.DayTransform,Transforms.HourTransform,Transforms.IdentityTransform,Transforms.ListTransform,Transforms.MonthTransform,Transforms.RangeTransform,Transforms.TruncateTransform,Transforms.YearTransform,TruncatePartitioningDTO,YearPartitioningDTO
Represents a transform function in the public logical expression API.
For example, the transform date(ts) is used to derive a date value from a timestamp column. The transform name is "date" and its argument is a reference to the "ts" column.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic classBase class for simple transforms of a single field. -
Field Summary
Fields inherited from interface org.apache.gravitino.rel.expressions.Expression
EMPTY_EXPRESSION, EMPTY_NAMED_REFERENCE -
Method Summary
Methods inherited from interface org.apache.gravitino.rel.expressions.Expression
references
-
Method Details
-
name
String name()- Returns:
- The transform function name.
-
arguments
Expression[] arguments()- Returns:
- The arguments passed to the transform function.
-
assignments
- Returns:
- The preassigned partitions in the partitioning. Currently, only
Transforms.ListTransformandTransforms.RangeTransformneed to deal with assignments
-
children
- Specified by:
childrenin interfaceExpression- Returns:
- An array of the children of this node. Children should not change.
-