Class AbstractSetExpression<T,R>
- java.lang.Object
-
- org.apache.qpid.server.query.engine.parsing.expression.AbstractExpressionNode<T,R>
-
- org.apache.qpid.server.query.engine.parsing.expression.set.AbstractSetExpression<T,R>
-
- Type Parameters:
T- Input parameter typeR- Output parameter type
- All Implemented Interfaces:
Function<T,R>,Expression<T,R>,ExpressionNode<T,R>,SetExpression<T,R>
- Direct Known Subclasses:
EmptySetExpression,IntersectExpression,MinusExpression,SelectExpression,UnionExpression
public abstract class AbstractSetExpression<T,R> extends AbstractExpressionNode<T,R> implements SetExpression<T,R>
Abstract class containing base functionality for set expressions
-
-
Field Summary
Fields Modifier and Type Field Description protected boolean_distinctDistinct flag-
Fields inherited from class org.apache.qpid.server.query.engine.parsing.expression.AbstractExpressionNode
_metadata
-
-
Constructor Summary
Constructors Constructor Description AbstractSetExpression(boolean distinct)Constructor stores distinct flagAbstractSetExpression(boolean distinct, ExpressionNode<T,R> left, ExpressionNode<T,R> right)Constructor initializes children expression list and validates their compatibility
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<ProjectionExpression<T,R>>getProjections()Returns list of projectionsList<SelectExpression<T,R>>getSelections()Returns list of select expressions-
Methods inherited from class org.apache.qpid.server.query.engine.parsing.expression.AbstractExpressionNode
containsAggregation, ctx, evaluateChild, getAggregations, getAlias, getChild, getChildren, getParent, isAccessor, isInstantlyEvaluable, setAlias, setParent, toString
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.apache.qpid.server.query.engine.parsing.expression.Expression
andThen, apply
-
Methods inherited from interface org.apache.qpid.server.query.engine.parsing.expression.ExpressionNode
containsAggregation, getAggregations, getAlias, getChildren, getParent, isAccessor, isInstantlyEvaluable, setAlias, setParent
-
-
-
-
Constructor Detail
-
AbstractSetExpression
public AbstractSetExpression(boolean distinct)
Constructor stores distinct flag- Parameters:
distinct- Distinct flag
-
AbstractSetExpression
public AbstractSetExpression(boolean distinct, ExpressionNode<T,R> left, ExpressionNode<T,R> right)Constructor initializes children expression list and validates their compatibility- Parameters:
distinct- Distinct flagleft- Left expressionright- Right expression
-
-
Method Detail
-
getProjections
public List<ProjectionExpression<T,R>> getProjections()
Returns list of projections- Specified by:
getProjectionsin interfaceSetExpression<T,R>- Returns:
- List of projections
-
getSelections
public List<SelectExpression<T,R>> getSelections()
Returns list of select expressions- Specified by:
getSelectionsin interfaceSetExpression<T,R>- Returns:
- List of select expressions
-
-