public abstract class BeamSqlMathUnaryExpression extends BeamSqlExpression
operands, outputType| Constructor and Description |
|---|
BeamSqlMathUnaryExpression(java.util.List<BeamSqlExpression> operands,
org.apache.calcite.sql.type.SqlTypeName outputType) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
accept()
assertion to make sure the input and output are supported in this expression.
|
abstract BeamSqlPrimitive |
calculate(BeamSqlPrimitive op)
For the operands of other type
SqlTypeName.NUMERIC_TYPES. |
BeamSqlPrimitive<? extends java.lang.Number> |
evaluate(Row inputRow,
BoundedWindow window,
ImmutableMap<java.lang.Integer,java.lang.Object> correlateEnv)
Apply input record
Row with BoundedWindow to this expression, the output value
is wrapped with BeamSqlPrimitive. |
getOperands, getOutputType, numberOfOperands, op, opType, opValueEvaluatedpublic BeamSqlMathUnaryExpression(java.util.List<BeamSqlExpression> operands, org.apache.calcite.sql.type.SqlTypeName outputType)
public boolean accept()
BeamSqlExpressionaccept in class BeamSqlExpressionpublic BeamSqlPrimitive<? extends java.lang.Number> evaluate(Row inputRow, BoundedWindow window, ImmutableMap<java.lang.Integer,java.lang.Object> correlateEnv)
BeamSqlExpressionRow with BoundedWindow to this expression, the output value
is wrapped with BeamSqlPrimitive.evaluate in class BeamSqlExpressionpublic abstract BeamSqlPrimitive calculate(BeamSqlPrimitive op)
SqlTypeName.NUMERIC_TYPES.