Package org.yamcs.yarch
Interface FilterableTarget
-
- All Known Implementing Classes:
TableWalkerBuilder,TupleSourceExpression
public interface FilterableTarget
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidaddInFilter(ColumnExpression cexpr, boolean negation, Set<Object> values)same asaddRelOpFilter(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.
-
-
-
Method Detail
-
addRelOpFilter
void addRelOpFilter(ColumnExpression cexpr, RelOp relOp, Object value) throws StreamSqlException
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.
- Parameters:
cexpr-relOp-value-- Throws:
StreamSqlException
-
addInFilter
void addInFilter(ColumnExpression cexpr, boolean negation, Set<Object> values) throws StreamSqlException
same asaddRelOpFilter(ColumnExpression, RelOp, Object)but adds a restrictions for a set of values resulted from a where x in (a,b,c) condition- Parameters:
cexpr-negation-values-- Throws:
StreamSqlException
-
-