关注 spark技术分享,
撸spark源码 玩spark最佳实践

Literal

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

Table 1. Literal’s Properties
Property Description

foldable

Enabled (i.e. true)

nullable

Enabled when value is null

Creating Literal Instance — create Object Method

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

Creating Literal Instance

Literal takes the following when created:

Generating Java Source Code (ExprCode) For Code-Generated Expression Evaluation — doGenCode Method

Note
doGenCode is part of Expression Contract to generate a Java source code (ExprCode) for code-generated expression evaluation.

doGenCode…​FIXME

赞(0) 打赏
未经允许不得转载:spark技术分享 » Literal
分享到: 更多 (0)

关注公众号:spark技术分享

联系我们联系我们

觉得文章有用就打赏一下文章作者

支付宝扫一扫打赏

微信扫一扫打赏