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
ConstructorsConstructorDescriptionTupleSourceExpression(String name) TupleSourceExpression(org.yamcs.yarch.streamsql.StreamExpression expr) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddInFilter(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) conditionvoidaddRelOpFilter(ColumnExpression cexpr, RelOp relOp, Object value) Tries to add a restriction for the rows to be selected/updated/deleted.booleanisFinite()voidsetAscending(boolean ascending) voidsetFollow(boolean follow) voidsetHistogramColumn(String histoColumn) voidsetHistogramMergeTime(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:FilterableTargetTries 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:
addRelOpFilterin interfaceFilterableTarget- Throws:
StreamSqlException
-
addInFilter
public void addInFilter(ColumnExpression cexpr, boolean negation, Set<Object> values) throws StreamSqlException Description copied from interface:FilterableTargetsame 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:
addInFilterin interfaceFilterableTarget- Throws:
StreamSqlException
-
setHistogramMergeTime
-
setAscending
public void setAscending(boolean ascending) -
setFollow
public void setFollow(boolean follow) -
isFinite
public boolean isFinite()
-