Package mondrian.rolap.agg
Class AbstractColumnPredicate.Factory
java.lang.Object
mondrian.rolap.agg.AbstractColumnPredicate.Factory
- Enclosing class:
- AbstractColumnPredicate
Factory for
StarPredicate
s and
StarColumnPredicate
s.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic LiteralStarPredicate
bool
(boolean b) Returns a predicate which always evaluates to TRUE or FALSE.static StarColumnPredicate
equal
(ValueColumnPredicate predicate) Returns a predicate which tests whether the column's value is equal to column predicate's value.static StarColumnPredicate
equal
(RolapStar.Column column, Object value) Returns a predicate which tests whether the column's value is equal to a given constant.static StarColumnPredicate
or
(RolapStar.Column column, List<StarColumnPredicate> list) Returns predicate which is the OR of a list of predicates.
-
Constructor Details
-
Factory
public Factory()
-
-
Method Details
-
equal
Returns a predicate which tests whether the column's value is equal to a given constant.- Parameters:
column
- Constrained columnvalue
- Value- Returns:
- Predicate which tests whether the column's value is equal to a column constraint's value
-
or
Returns predicate which is the OR of a list of predicates.- Parameters:
column
- Column being constrainedlist
- List of predicates- Returns:
- Predicate which is an OR of the list of predicates
-
bool
Returns a predicate which always evaluates to TRUE or FALSE.- Parameters:
b
- Truth value- Returns:
- Predicate which always evaluates to truth value
-
equal
Returns a predicate which tests whether the column's value is equal to column predicate's value.- Parameters:
predicate
- Column predicate- Returns:
- Predicate which tests whether the column's value is equal to a column predicate's value
-