gravitino.api.expressions.literals.literals.LiteralImpl¶
- class gravitino.api.expressions.literals.literals.LiteralImpl(value: T, data_type: Type)¶
Bases:
Literal[T]Creates a literal with the given type value.
Methods
__init__(value, data_type)children()Returns a list of the children of this node.
The data type of the literal.
Returns a list of fields or columns that are referenced by this expression.
value()The literal value.
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.
- children() List[Expression]¶
Returns a list of the children of this node. Children should not change.
- references() List[NamedReference]¶
Returns a list of fields or columns that are referenced by this expression.
- value() T¶
The literal value.