Package org.yamcs.yarch
Interface FilterableTarget
- All Known Implementing Classes:
TableWalkerBuilder,TupleSourceExpression
public interface FilterableTarget
-
Method Summary
Modifier and TypeMethodDescriptionvoidaddInFilter(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 Details
-
addRelOpFilter
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
-