UnaryExpression Contract
UnaryExpression
is…FIXME
defineCodeGen
Method
1 2 3 4 5 6 7 8 |
defineCodeGen( ctx: CodegenContext, ev: ExprCode, f: String => String): ExprCode |
defineCodeGen
…FIXME
Note
|
defineCodeGen is used when…FIXME
|
nullSafeEval
Method
1 2 3 4 5 |
nullSafeEval(input: Any): Any |
nullSafeEval
simply fails with the following error (and is expected to be overrided to save null-check code):
1 2 3 4 5 |
UnaryExpressions must override either eval or nullSafeEval |
Note
|
nullSafeEval is used exclusively when UnaryExpression is requested to eval.
|
Evaluating Expression — eval
Method
1 2 3 4 5 |
eval(input: InternalRow): Any |
Note
|
eval is part of Expression Contract for the interpreted (non-code-generated) expression evaluation, i.e. evaluating a Catalyst expression to a JVM object for a given internal binary row.
|
eval
…FIXME