public abstract class BeamSqlArithmeticExpression extends BeamSqlExpression
operands, outputType| Modifier | Constructor and Description |
|---|---|
protected |
BeamSqlArithmeticExpression(java.util.List<BeamSqlExpression> operands) |
protected |
BeamSqlArithmeticExpression(java.util.List<BeamSqlExpression> operands,
SqlTypeName outputType) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
accept()
assertion to make sure the input and output are supported in this expression.
|
protected abstract java.math.BigDecimal |
calc(java.math.BigDecimal left,
java.math.BigDecimal right) |
protected static SqlTypeName |
deduceOutputType(SqlTypeName left,
SqlTypeName right) |
BeamSqlPrimitive<? extends java.lang.Number> |
evaluate(Row inputRow,
BoundedWindow window)
Apply input record
Row with BoundedWindow to this expression,
the output value is wrapped with BeamSqlPrimitive. |
protected BeamSqlPrimitive<? extends java.lang.Number> |
getCorrectlyTypedResult(java.math.BigDecimal rawResult) |
getOperands, getOutputType, numberOfOperands, op, opType, opValueEvaluatedprotected BeamSqlArithmeticExpression(java.util.List<BeamSqlExpression> operands)
protected BeamSqlArithmeticExpression(java.util.List<BeamSqlExpression> operands, SqlTypeName outputType)
public BeamSqlPrimitive<? extends java.lang.Number> evaluate(Row inputRow, BoundedWindow window)
BeamSqlExpressionRow with BoundedWindow to this expression,
the output value is wrapped with BeamSqlPrimitive.evaluate in class BeamSqlExpressionprotected abstract java.math.BigDecimal calc(java.math.BigDecimal left,
java.math.BigDecimal right)
protected static SqlTypeName deduceOutputType(SqlTypeName left,
SqlTypeName right)
public boolean accept()
BeamSqlExpressionaccept in class BeamSqlExpressionprotected BeamSqlPrimitive<? extends java.lang.Number> getCorrectlyTypedResult(java.math.BigDecimal rawResult)