registryEntry: (String, (ExpressionInfo, FunctionBuilder))
CreateStruct Function Builder
CreateStruct
is a function builder (e.g. Seq[Expression] ⇒ Expression
) that can create CreateNamedStruct expressions and is the metadata of the struct function.
Metadata of struct Function — registryEntry
Property
registryEntry
…FIXME
Note
|
registryEntry is used exclusively when FunctionRegistry is requested for the function expression registry.
|
Creating CreateNamedStruct Expression — apply
Method
apply(children: Seq[Expression]): CreateNamedStruct
Note
|
apply is part of Scala’s scala.Function1 contract to create a function of one parameter (e.g. Seq[Expression] ).
|
apply
creates a CreateNamedStruct expression with the input children
expressions as follows:
-
For NamedExpression expressions that are resolved,
apply
creates a pair of a Literal expression (with the name of theNamedExpression
) and theNamedExpression
itself -
For NamedExpression expressions that are not resolved yet,
apply
creates a pair of aNamePlaceholder
expression and theNamedExpression
itself -
For all other expressions,
apply
creates a pair of a Literal expression (with the value ascol[index]
) and theExpression
itself
Note
|
|