Package mondrian.rolap.agg
Class AbstractColumnPredicate.Factory
- java.lang.Object
-
- mondrian.rolap.agg.AbstractColumnPredicate.Factory
-
- Enclosing class:
- AbstractColumnPredicate
public static class AbstractColumnPredicate.Factory extends Object
Factory forStarPredicate
s andStarColumnPredicate
s.
-
-
Constructor Summary
Constructors Constructor Description Factory()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static 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.
-
-
-
Method Detail
-
equal
public static StarColumnPredicate equal(RolapStar.Column column, Object value)
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
public static StarColumnPredicate or(RolapStar.Column column, List<StarColumnPredicate> list)
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
public static LiteralStarPredicate bool(boolean b)
Returns a predicate which always evaluates to TRUE or FALSE.- Parameters:
b
- Truth value- Returns:
- Predicate which always evaluates to truth value
-
equal
public static StarColumnPredicate equal(ValueColumnPredicate predicate)
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
-
-