Package org.yamcs.yarch.streamsql
Class Expression
java.lang.Object
org.yamcs.yarch.streamsql.Expression
- Direct Known Subclasses:
AdditiveExpression,AggregateExpression,AndExpression,ArgumentExpression,ArrayExpression,BetweenExpression,BitwiseExpression,CoalesceExpression,ColumnExpression,ExponentExpression,ExtractNumberExpression,InExpression,IsNullExpression,LikeExpression,MultiplicativeExpression,NegativeExpression,NotExpression,NullExpression,OrExpression,RelationalExpression,SubstringExpression,UnhexExpression,ValueExpression
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Expression[]protected Objectprotected booleanprotected TupleDefinitionprotected DataType -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddFilter(FilterableTarget tableStream) add a filter to the table if applicable.voidbind(TupleDefinition inputDef2) voidvoidcollectRequiredInputs(Set<ColumnDefinition> inputs) compile()protected abstract voiddoBind()protected voidprotected voidprotected voidabstract voidprotected voidfillCode_InputDefVars(Collection<ColumnDefinition> inputs, StringBuilder code) when the expression behaves like a column expression, this is the column namegetType()protected booleanfinal booleanvoidvoidsetColumnName(String name)
-
Field Details
-
type
-
children
-
inputDef
-
hasAggregates
protected boolean hasAggregates -
constantValue
-
-
Constructor Details
-
Expression
-
-
Method Details
-
setArgs
-
isAggregate
protected boolean isAggregate() -
isConstant
public final boolean isConstant() -
addFilter
add a filter to the table if applicable.- Parameters:
tableStream-- Throws:
StreamSqlException
-
collectAggregates
-
doBind
- Throws:
StreamSqlException
-
bind
- Throws:
StreamSqlException
-
getType
-
fillCode_Declarations
- Throws:
StreamSqlException
-
fillCode_Constructor
- Throws:
StreamSqlException
-
collectRequiredInputs
-
fillCode_InputDefVars
-
fillCode_getValueBody
- Throws:
StreamSqlException
-
fillCode_getValueReturn
- Throws:
StreamSqlException
-
compile
- Throws:
StreamSqlException
-
getColumnName
when the expression behaves like a column expression, this is the column name- Returns:
-
setColumnName
-
getConstantValue
-