org.objectweb.medor.query.api
Interface FilteredQueryTree
- Cloneable, QueryTree
- NestQueryNode, QueryNode, RdbExpQueryLeaf, UnnestQueryNode
- AggregateRdbQueryNode, BasicQueryNode, BasicRdbExpQueryLeaf, Cartesian, Intersection, JoinProject, Nest, Project, SelectProject, Union, Unnest
public interface FilteredQueryTree
This interface is implemented by all QueryTree which have a QueryFilter
associated (QueryNode, RdbExpLeaf, ...).
- S.Chassande-Barrioz
Expression | getQueryFilter() - Retrieves the filter associated to the QueryTree.
|
void | setQueryFilter(Expression e) - Sets the filter associated to the FilteredQueryTree.
|
getQueryFilter
public Expression getQueryFilter()
Retrieves the filter associated to the QueryTree. This filter is
represented by an Expression.
- the query filter Expression associated to the QueryNode.
Expression
setQueryFilter
public void setQueryFilter(Expression e)
Sets the filter associated to the FilteredQueryTree. This filter is
represented by an Expression.
For a QueryNode:
This method also updates the list of QueryTree children of the current
QueryNode according to the FieldOperands present in the Expression.
Usage constraint: if the QueryNode already has an associated
Expression, and if this Expression has been modified, the user is
requested to call the setQueryFilter method after the modification.
For a RbdQueryLeaf:
It sets the filter associated to the RbdQueryLeaf. This filter is
represented by an Expression. Unlike the filter of a QueryNode, is
applies to its own Fields, instead of the Fields of its children.
e
- is the Expression representing the query filter of the current
QueryNode.
Expression