Package mondrian.rolap.agg
Class OrPredicate
java.lang.Object
mondrian.rolap.agg.ListPredicate
mondrian.rolap.agg.OrPredicate
- All Implemented Interfaces:
StarPredicate
Predicate which is the union of a list of predicates. It evaluates to
true if any of the predicates evaluates to true.
- Author:
- jhyde
- See Also:
-
Field Summary
Fields inherited from class mondrian.rolap.agg.ListPredicate
children, columnsFields inherited from interface mondrian.rolap.StarPredicate
WILDCARD -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionand(StarPredicate predicate) Returns this intersection of this Predicate with another.booleanEvaluates a constraint against a list of values.protected StringgetOp()or(StarPredicate predicate) Returns this union of this Predicate with another.voidtoSql(SqlQuery sqlQuery, StringBuilder buf) Methods inherited from class mondrian.rolap.agg.ListPredicate
describe, equalConstraint, getChildren, getConstrainedColumnBitKey, getConstrainedColumnList, hashCode, minus, toString
-
Constructor Details
-
OrPredicate
-
-
Method Details
-
evaluate
Description copied from interface:StarPredicateEvaluates a constraint against a list of values.If one of the values is
StarPredicate.WILDCARD, returns true if constraint is true for all possible values of that column.- Parameters:
valueList- List of values, one for each constrained column- Returns:
- Whether constraint holds for given set of values
-
or
Description copied from interface:StarPredicateReturns this union of this Predicate with another. The result is a Predicate which holds whenever either predicate holds.- Parameters:
predicate- Predicate- Returns:
- Combined predicate
-
and
Description copied from interface:StarPredicateReturns this intersection of this Predicate with another. The result is a Predicate which holds whenever both predicates hold.- Parameters:
predicate- Predicate- Returns:
- Combined predicate
-
toSql
- Specified by:
toSqlin interfaceStarPredicate- Overrides:
toSqlin classListPredicate
-
getOp
- Specified by:
getOpin classListPredicate
-