gravitino.api.expressions.transforms.transform.SingleFieldTransform¶
- class gravitino.api.expressions.transforms.transform.SingleFieldTransform(ref: NamedReference)¶
Bases:
Transform
Base class for transforms on a single field.
- __init__(ref: NamedReference)¶
Methods
__init__
(ref)Gets the arguments passed to the transform function.
Gets the preassigned partitions in the partitioning.
children
()Returns a list of the children of this node.
Gets the referenced field name as a list of string parts.
name
()Gets the transform function name.
Returns a list of fields or columns that are referenced by this expression.
Attributes
EMPTY_EXPRESSION is only used as an input when the default children method builds the result.
EMPTY_NAMED_REFERENCE is only used as an input when the default references method builds the result array to avoid repeatedly allocating an empty array.
- EMPTY_EXPRESSION: List[Expression] = []¶
EMPTY_EXPRESSION is only used as an input when the default children method builds the result.
- EMPTY_NAMED_REFERENCE: List[NamedReference] = []¶
EMPTY_NAMED_REFERENCE is only used as an input when the default references method builds the result array to avoid repeatedly allocating an empty array.
- arguments() List[Expression] ¶
Gets the arguments passed to the transform function.
- Returns:
List[Expression]: The arguments passed to the transform function.
- assignments() List[Partition] ¶
Gets the preassigned partitions in the partitioning.
Currently, only Transforms.ListTransform and Transforms.RangeTransform need to deal with assignments
- Returns:
List[Partition]: The preassigned partitions in the partitioning.
- children() List[Expression] ¶
Returns a list of the children of this node. Children should not change.
- field_name() List[str] ¶
Gets the referenced field name as a list of string parts.
- Returns:
List[str]: The referenced field name as an array of String parts.
- abstract name() str ¶
Gets the transform function name.
- Returns:
str: The transform function name.
- references() List[NamedReference] ¶
Returns a list of fields or columns that are referenced by this expression.