Interface Literal<T>
- Type Parameters:
- T- the JVM type of a value held by the literal
- All Superinterfaces:
- Expression
- All Known Implementing Classes:
- AlwaysFalse,- AlwaysTrue
Represents a constant literal value in the public expression API.
 
 The JVM type of the value held by a literal must be the type used by Spark's InternalRow API for
 the literal's SQL data type.
- Since:
- 3.0.0
- 
Field SummaryFields inherited from interface org.apache.spark.sql.connector.expressions.ExpressionEMPTY_EXPRESSION, EMPTY_NAMED_REFERENCE
- 
Method SummaryMethods inherited from interface org.apache.spark.sql.connector.expressions.Expressiondescribe, references
- 
Method Details- 
valueT value()Returns the literal value.
- 
dataTypeDataType dataType()Returns the SQL data type of the literal.
- 
childrenDescription copied from interface:ExpressionReturns an array of the children of this node. Children should not change.- Specified by:
- childrenin interface- Expression
 
 
-