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.

__init__(value: T, data_type: Type)

Methods

__init__(value, data_type)

children()

Returns a list of the children of this node.

data_type()

The data type of the literal.

references()

Returns a list of fields or columns that are referenced by this expression.

value()

The literal value.

Attributes

EMPTY_EXPRESSION

EMPTY_EXPRESSION is only used as an input when the default children method builds the result.

EMPTY_NAMED_REFERENCE

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.

data_type() Type

The data type of the literal.

references() List[NamedReference]

Returns a list of fields or columns that are referenced by this expression.

value() T

The literal value.