Package org.yamcs.yarch.streamsql
Class Expression
java.lang.Object
org.yamcs.yarch.streamsql.Expression
- Direct Known Subclasses:
AdditiveExpression
,AggregateExpression
,AndExpression
,ArgumentExpression
,ArrayExpression
,BitwiseExpression
,CoalesceExpression
,ColumnExpression
,ExponentExpression
,ExtractNumberExpression
,InExpression
,IsNullExpression
,LikeExpression
,MultiplicativeExpression
,NegativeExpression
,NotExpression
,NullExpression
,OrExpression
,RelationalExpression
,SubstringExpression
,UnhexExpression
,ValueExpression
-
Field Summary
Modifier and TypeFieldDescriptionprotected Expression[]
protected Object
protected boolean
protected TupleDefinition
protected DataType
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addFilter
(FilterableTarget tableStream) add a filter to the table if applicable.void
bind
(TupleDefinition inputDef2) void
void
collectRequiredInputs
(Set<ColumnDefinition> inputs) compile()
protected abstract void
doBind()
protected void
protected void
protected void
abstract void
protected void
fillCode_InputDefVars
(Collection<ColumnDefinition> inputs, StringBuilder code) when the expression behaves like a column expression, this is the column namegetType()
protected boolean
final boolean
void
void
setColumnName
(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
-