Literal Leaf Expression¶
Literal
is a leaf expression that is <
[[properties]] .Literal's Properties [width="100%",cols="1,2",options="header"] |=== | Property | Description
| foldable
| [[foldable]] Enabled (i.e. true
)
| nullable
| [[nullable]] Enabled when <null
|===
=== [[create]] Creating Literal Instance -- create
Object Method
[source, scala]¶
create(v: Any, dataType: DataType): Literal¶
create
uses CatalystTypeConverters
helper object to convert the input v
Scala value to a Catalyst rows or types and creates a <
Creating Instance¶
Literal
takes the following when created:
- [[value]] Scala value (of type
Any
) - [[dataType]] DataType
=== [[doGenCode]] Generating Java Source Code (ExprCode) For Code-Generated Expression Evaluation -- doGenCode
Method
[source, scala]¶
doGenCode(ctx: CodegenContext, ev: ExprCode): ExprCode¶
NOTE: doGenCode
is part of <
doGenCode
...FIXME