Package org.yamcs.yarch.streamsql
Class TableWalkerBuilder
java.lang.Object
org.yamcs.yarch.streamsql.TableWalkerBuilder
- All Implemented Interfaces:
FilterableTarget
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addInFilter
(ColumnExpression cexpr, boolean negation, Set<Object> values) currently adds only filters on value based partitionsvoid
addRelOpFilter
(ColumnExpression cexpr, RelOp relOp, Object value) Tries to add a restriction for the rows to be selected/updated/deleted.build()
void
setAscending
(boolean ascending) void
setFollow
(boolean follow)
-
Constructor Details
-
TableWalkerBuilder
-
-
Method Details
-
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 currently adds only filters on value based partitions- Specified by:
addInFilter
in interfaceFilterableTarget
- Throws:
StreamSqlException
-
build
-
setAscending
public void setAscending(boolean ascending) -
setFollow
public void setFollow(boolean follow) -
getTableDefinition
-