Package mondrian.rolap.agg
Class AbstractColumnPredicate.Factory
java.lang.Object
mondrian.rolap.agg.AbstractColumnPredicate.Factory
- Enclosing class:
- AbstractColumnPredicate
Factory for
StarPredicates and
StarColumnPredicates.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic LiteralStarPredicatebool(boolean b) Returns a predicate which always evaluates to TRUE or FALSE.static StarColumnPredicateequal(ValueColumnPredicate predicate) Returns a predicate which tests whether the column's value is equal to column predicate's value.static StarColumnPredicateequal(RolapStar.Column column, Object value) Returns a predicate which tests whether the column's value is equal to a given constant.static StarColumnPredicateor(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
-