Interface Literal<T>
- Type Parameters:
T- the JVM type of value held by the literal
- All Superinterfaces:
Expression
- All Known Implementing Classes:
Literal.LiteralImpl
Deprecated.
Represents a constant literal value in the public expression API.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classDeprecated.Creates a literal with the given type value. -
Field Summary
Fields inherited from interface org.apache.gravitino.rel.expressions.Expression
EMPTY_EXPRESSION, EMPTY_NAMED_REFERENCE -
Method Summary
Modifier and TypeMethodDescriptiondefault Expression[]children()Deprecated.dataType()Deprecated.static Literal.LiteralImpl<Integer>Deprecated.Creates an integer literal with the given value.static <T> Literal.LiteralImpl<T>Deprecated.Creates a literal with the given value and data type.static Literal.LiteralImpl<String>Deprecated.Creates a string literal with the given value.value()Deprecated.Methods inherited from interface org.apache.gravitino.rel.expressions.Expression
references
-
Method Details
-
value
T value()Deprecated.- Returns:
- The literal value.
-
dataType
Type dataType()Deprecated.- Returns:
- The data type of the literal.
-
children
Deprecated.- Specified by:
childrenin interfaceExpression- Returns:
- An array of the children of this node. Children should not change.
-
of
Deprecated.Creates a literal with the given value and data type.- Type Parameters:
T- the JVM type of value held by the literal- Parameters:
value- the literal valuedataType- the data type of the literal- Returns:
- a new
Literalinstance
-
integer
Deprecated.Creates an integer literal with the given value.- Parameters:
value- the integer literal value- Returns:
- a new
Literalinstance
-
string
Deprecated.Creates a string literal with the given value.- Parameters:
value- the string literal value- Returns:
- a new
Literalinstance
-
Literalinstead.