Literal Leaf Expression
Literal
is a leaf expression that is created to represent a Scala value of a specific type.
Literal
is created when…MEFIXME
Property | Description |
---|---|
|
|
|
Enabled when value is |
Creating Literal Instance — create
Object Method
1 2 3 4 5 |
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 Literal (with the Catalyst value and the input DataType).
Note
|
create is used when…FIXME
|
Generating Java Source Code (ExprCode) For Code-Generated Expression Evaluation — doGenCode
Method
1 2 3 4 5 |
doGenCode(ctx: CodegenContext, ev: ExprCode): ExprCode |
Note
|
doGenCode is part of Expression Contract to generate a Java source code (ExprCode) for code-generated expression evaluation.
|
doGenCode
…FIXME