Package org.yamcs.yarch.streamsql
Class ValueExpression
- java.lang.Object
-
- org.yamcs.yarch.streamsql.Expression
-
- org.yamcs.yarch.streamsql.ValueExpression
-
public class ValueExpression extends Expression
This represents a constant value coming from some sql expression for example: select 3 from x
-
-
Field Summary
-
Fields inherited from class org.yamcs.yarch.streamsql.Expression
children, constantValue, hasAggregates, inputDef, type
-
-
Constructor Summary
Constructors Constructor Description ValueExpression(Object value, DataType type)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CompiledExpressioncompile()voiddoBind()voidfillCode_getValueReturn(StringBuilder code)StringtoString()-
Methods inherited from class org.yamcs.yarch.streamsql.Expression
addFilter, bind, collectAggregates, collectRequiredInputs, fillCode_Constructor, fillCode_Declarations, fillCode_getValueBody, fillCode_InputDefVars, getColumnName, getConstantValue, getType, isAggregate, isConstant, setColumnName
-
-
-
-
Method Detail
-
doBind
public void doBind() throws StreamSqlException- Specified by:
doBindin classExpression- Throws:
StreamSqlException
-
fillCode_getValueReturn
public void fillCode_getValueReturn(StringBuilder code) throws StreamSqlException
- Specified by:
fillCode_getValueReturnin classExpression- Throws:
StreamSqlException
-
compile
public CompiledExpression compile()
- Overrides:
compilein classExpression
-
-