public abstract class Expression extends Object
| Modifier and Type | Field and Description |
|---|---|
protected Expression[] |
children |
protected boolean |
constant |
protected boolean |
hasAggregates |
protected TupleDefinition |
inputDef |
protected DataType |
type |
| Constructor and Description |
|---|
Expression(Expression[] children) |
| Modifier and Type | Method and Description |
|---|---|
Expression |
addFilter(DbReaderStream tableStream)
add a filter to the table if applicable and returns an expression where the condition is removed.
|
void |
bind(TupleDefinition inputDef2) |
void |
collectAggregates(List<AggregateExpression> list) |
CompiledExpression |
compile() |
protected abstract void |
doBind() |
protected void |
fillCode_AllInputDefVars(StringBuilder code) |
protected void |
fillCode_Constructor(StringBuilder code) |
protected void |
fillCode_Declarations(StringBuilder code) |
protected void |
fillCode_getValueBody(StringBuilder code) |
protected abstract void |
fillCode_getValueReturn(StringBuilder code) |
String |
getColName()
when the expression behaves like a column expression, this is the column name
|
DataType |
getType() |
protected boolean |
isAggregate() |
boolean |
isConstant() |
protected DataType type
protected Expression[] children
protected TupleDefinition inputDef
protected boolean hasAggregates
protected boolean constant
public Expression(Expression[] children)
protected boolean isAggregate()
public final boolean isConstant()
public Expression addFilter(DbReaderStream tableStream) throws StreamSqlException
tableStream - StreamSqlExceptionpublic void collectAggregates(List<AggregateExpression> list)
protected abstract void doBind()
throws StreamSqlException
StreamSqlExceptionpublic void bind(TupleDefinition inputDef2) throws StreamSqlException
StreamSqlExceptionpublic DataType getType()
protected void fillCode_Declarations(StringBuilder code)
protected void fillCode_Constructor(StringBuilder code) throws StreamSqlException
StreamSqlExceptionprotected void fillCode_AllInputDefVars(StringBuilder code)
protected void fillCode_getValueBody(StringBuilder code) throws StreamSqlException
StreamSqlExceptionprotected abstract void fillCode_getValueReturn(StringBuilder code) throws StreamSqlException
StreamSqlExceptionpublic CompiledExpression compile() throws StreamSqlException
StreamSqlExceptionpublic String getColName()
Copyright © 2017 Space Applications Services. All rights reserved.