Package org.yamcs.yarch.streamsql
Class TupleSourceExpression
java.lang.Object
org.yamcs.yarch.streamsql.TupleSourceExpression
- All Implemented Interfaces:
FilterableTarget
A source of tuples. Can be:
- a reference to an existing stream objectName
- a reference to a table objectName
- a stream expression
-
Constructor Summary
ConstructorDescriptionTupleSourceExpression
(String name) TupleSourceExpression
(org.yamcs.yarch.streamsql.StreamExpression expr) -
Method Summary
Modifier and TypeMethodDescriptionvoid
addInFilter
(ColumnExpression cexpr, boolean negation, Set<Object> values) same asFilterableTarget.addRelOpFilter(ColumnExpression, RelOp, Object)
but adds a restrictions for a set of values resulted from a where x in (a,b,c) conditionvoid
addRelOpFilter
(ColumnExpression cexpr, RelOp relOp, Object value) Tries to add a restriction for the rows to be selected/updated/deleted.boolean
isFinite()
void
setAscending
(boolean ascending) void
setFollow
(boolean follow) void
setHistogramColumn
(String histoColumn) void
setHistogramMergeTime
(BigDecimal mergeTime)
-
Constructor Details
-
TupleSourceExpression
-
TupleSourceExpression
public TupleSourceExpression(org.yamcs.yarch.streamsql.StreamExpression expr)
-
-
Method Details
-
setHistogramColumn
-
addRelOpFilter
public void addRelOpFilter(ColumnExpression cexpr, RelOp relOp, Object value) throws StreamSqlException Description copied from interface:FilterableTarget
Tries to add a restriction for the rows to be selected/updated/deleted. This will implement optimisations to avoid scanning the table row by row.Typically it works if the condition refers to the primary key.
- Specified by:
addRelOpFilter
in interfaceFilterableTarget
- Throws:
StreamSqlException
-
addInFilter
public void addInFilter(ColumnExpression cexpr, boolean negation, Set<Object> values) throws StreamSqlException Description copied from interface:FilterableTarget
same asFilterableTarget.addRelOpFilter(ColumnExpression, RelOp, Object)
but adds a restrictions for a set of values resulted from a where x in (a,b,c) condition- Specified by:
addInFilter
in interfaceFilterableTarget
- Throws:
StreamSqlException
-
setHistogramMergeTime
-
setAscending
public void setAscending(boolean ascending) -
setFollow
public void setFollow(boolean follow) -
isFinite
public boolean isFinite()
-