Package org.yamcs.yarch.streamsql
Class CompilableAggregateExpression
- java.lang.Object
-
- org.yamcs.yarch.streamsql.Expression
-
- org.yamcs.yarch.streamsql.AggregateExpression
-
- org.yamcs.yarch.streamsql.CompilableAggregateExpression
-
- Direct Known Subclasses:
CountExpression
,SumExpression
public abstract class CompilableAggregateExpression extends AggregateExpression
-
-
Field Summary
-
Fields inherited from class org.yamcs.yarch.streamsql.Expression
children, constantValue, hasAggregates, inputDef, type
-
-
Constructor Summary
Constructors Constructor Description CompilableAggregateExpression(Expression[] args, boolean star)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract void
aggregateFillCode_clear(StringBuilder code)
protected abstract void
aggregateFillCode_Declarations(StringBuilder code)
protected abstract void
aggregateFillCode_getValue(StringBuilder code)
protected abstract void
aggregateFillCode_newData(StringBuilder code)
void
collectRequiredInputs(Set<ColumnDefinition> inputs)
CompiledAggregateExpression
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, doBind, fillCode_Constructor, fillCode_Declarations, fillCode_getValueBody, fillCode_InputDefVars, getColumnName, getConstantValue, getType, isConstant, setArgs, setColumnName
-
-
-
-
Constructor Detail
-
CompilableAggregateExpression
public CompilableAggregateExpression(Expression[] args, boolean star) throws ParseException
- Throws:
ParseException
-
-
Method Detail
-
collectRequiredInputs
public void collectRequiredInputs(Set<ColumnDefinition> inputs)
- Overrides:
collectRequiredInputs
in classExpression
-
getCompiledAggregate
public CompiledAggregateExpression getCompiledAggregate() throws StreamSqlException
- Specified by:
getCompiledAggregate
in classAggregateExpression
- Throws:
StreamSqlException
-
aggregateFillCode_clear
protected abstract void aggregateFillCode_clear(StringBuilder code)
-
aggregateFillCode_getValue
protected abstract void aggregateFillCode_getValue(StringBuilder code)
-
aggregateFillCode_newData
protected abstract void aggregateFillCode_newData(StringBuilder code) throws StreamSqlException
- Throws:
StreamSqlException
-
aggregateFillCode_Declarations
protected abstract void aggregateFillCode_Declarations(StringBuilder code)
-
-