Package org.yamcs.yarch.streamsql
Class SelectExpression
java.lang.Object
org.yamcs.yarch.streamsql.SelectExpression
Corresponds to a queries like "select 2*x, x+sum(y+3) from t[...] where x>5 group by x" chain of data/processing
(D=Data, P=Processing, agg=aggregate):
(D1) inputDef (x,y) (P1.1) where filter (x>5) (P1.2) aggInputList (D2) aggInputDef (x,y+3) (P2) aggSelectList (D3) aggOutputDef (x,sum(y+3)) (P3) selectList (D4) outputDef (2*x,x+sum(y+3))P1.2 is performed by the WindowProcessor If there is no aggregate, then P3 follows directly after P1.1
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
boolean
isFinite()
void
setAscending
(boolean ascending) void
void
setFollow
(boolean follow) void
setLimit
(BigDecimal offset, BigDecimal limit) void
setSelectList
(List<SelectItem> selectList) void
setWhereClause
(Expression whereClause) void
setWindow
(WindowSpecification windowSpec)
-
Constructor Details
-
SelectExpression
public SelectExpression()
-
-
Method Details
-
setSelectList
-
setFirstSource
-
setWhereClause
-
setWindow
-
setAscending
public void setAscending(boolean ascending) -
setFollow
public void setFollow(boolean follow) -
setLimit
-
bind
- Throws:
StreamSqlException
-
getOutputDefinition
-
execute
- Throws:
StreamSqlException
-
isFinite
public boolean isFinite()
-