Package org.yamcs.yarch.streamsql
Class TupleSourceExpression
- java.lang.Object
-
- org.yamcs.yarch.streamsql.TupleSourceExpression
-
- All Implemented Interfaces:
FilterableTarget
public class TupleSourceExpression extends Object implements 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
Constructors Constructor Description TupleSourceExpression(String name)
TupleSourceExpression(org.yamcs.yarch.streamsql.StreamExpression expr)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
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.void
setAscending(boolean ascending)
void
setFollow(boolean follow)
void
setHistogramColumn(String histoColumn)
void
setHistogramMergeTime(BigDecimal mergeTime)
-
-
-
Constructor Detail
-
TupleSourceExpression
public TupleSourceExpression(String name)
-
TupleSourceExpression
public TupleSourceExpression(org.yamcs.yarch.streamsql.StreamExpression expr)
-
-
Method Detail
-
setHistogramColumn
public void setHistogramColumn(String histoColumn)
-
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
public void setHistogramMergeTime(BigDecimal mergeTime)
-
setAscending
public void setAscending(boolean ascending)
-
setFollow
public void setFollow(boolean follow)
-
-