Package org.yamcs.yarch.streamsql
Class RelationalExpression
- java.lang.Object
-
- org.yamcs.yarch.streamsql.Expression
-
- org.yamcs.yarch.streamsql.RelationalExpression
-
public class RelationalExpression extends Expression
Expressions of type "x > y"
-
-
Field Summary
-
Fields inherited from class org.yamcs.yarch.streamsql.Expression
children, constantValue, hasAggregates, inputDef, type
-
-
Constructor Summary
Constructors Constructor Description RelationalExpression(Expression left, Expression right, RelOp relOp)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ExpressionaddFilter(DbReaderStream tableStream)add a filter to the table if applicable and returns an expression where the condition is removed.voiddoBind()voidfillCode_getValueReturn(StringBuilder code)RelOpgetRelation()StringtoString()-
Methods inherited from class org.yamcs.yarch.streamsql.Expression
bind, collectAggregates, compile, fillCode_AllInputDefVars, fillCode_Constructor, fillCode_Declarations, fillCode_getValueBody, getColumnName, getConstantValue, getType, isAggregate, isConstant, setColumnName
-
-
-
-
Constructor Detail
-
RelationalExpression
public RelationalExpression(Expression left, Expression right, RelOp relOp) throws ParseException
- Throws:
ParseException
-
-
Method Detail
-
getRelation
public RelOp getRelation()
-
addFilter
public Expression addFilter(DbReaderStream tableStream) throws StreamSqlException
Description copied from class:Expressionadd a filter to the table if applicable and returns an expression where the condition is removed.- Overrides:
addFilterin classExpression- Returns:
- Throws:
StreamSqlException
-
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
-
-