Package org.yamcs.yarch.streamsql
Class SumExpression
- java.lang.Object
-
- org.yamcs.yarch.streamsql.Expression
-
- org.yamcs.yarch.streamsql.AggregateExpression
-
- org.yamcs.yarch.streamsql.CompilableAggregateExpression
-
- org.yamcs.yarch.streamsql.SumExpression
-
public class SumExpression extends CompilableAggregateExpression
-
-
Field Summary
-
Fields inherited from class org.yamcs.yarch.streamsql.Expression
children, constantValue, hasAggregates, inputDef, type
-
-
Constructor Summary
Constructors Constructor Description SumExpression(Expression[] args, boolean star)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
aggregateFillCode_clear(StringBuilder code)
protected void
aggregateFillCode_Declarations(StringBuilder code)
protected void
aggregateFillCode_getValue(StringBuilder code)
protected void
aggregateFillCode_newData(StringBuilder code)
protected void
doBind()
-
Methods inherited from class org.yamcs.yarch.streamsql.CompilableAggregateExpression
getCompiledAggregate
-
Methods inherited from class org.yamcs.yarch.streamsql.AggregateExpression
bind, bindAggregate, compile, fillCode_getValueReturn, isAggregate
-
Methods inherited from class org.yamcs.yarch.streamsql.Expression
addFilter, collectAggregates, fillCode_AllInputDefVars, fillCode_Constructor, fillCode_Declarations, fillCode_getValueBody, getColumnName, getConstantValue, getType, isConstant, setColumnName
-
-
-
-
Constructor Detail
-
SumExpression
public SumExpression(Expression[] args, boolean star) throws ParseException
- Throws:
ParseException
-
-
Method Detail
-
doBind
protected void doBind() throws StreamSqlException
- Specified by:
doBind
in classExpression
- Throws:
StreamSqlException
-
aggregateFillCode_Declarations
protected void aggregateFillCode_Declarations(StringBuilder code)
- Specified by:
aggregateFillCode_Declarations
in classCompilableAggregateExpression
-
aggregateFillCode_clear
protected void aggregateFillCode_clear(StringBuilder code)
- Specified by:
aggregateFillCode_clear
in classCompilableAggregateExpression
-
aggregateFillCode_getValue
protected void aggregateFillCode_getValue(StringBuilder code)
- Specified by:
aggregateFillCode_getValue
in classCompilableAggregateExpression
-
aggregateFillCode_newData
protected void aggregateFillCode_newData(StringBuilder code) throws StreamSqlException
- Specified by:
aggregateFillCode_newData
in classCompilableAggregateExpression
- Throws:
StreamSqlException
-
-