gravitino.api.expressions.literals.literal.Literal

class gravitino.api.expressions.literals.literal.Literal(*args, **kwds)

Bases: Generic[T], Expression

Represents a constant literal value in the public expression API.

__init__()

Methods

__init__()

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.

abstract 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.

abstract value() T

The literal value.