Package mondrian.rolap.agg
Class AbstractColumnPredicate
java.lang.Object
mondrian.rolap.agg.AbstractColumnPredicate
- All Implemented Interfaces:
StarColumnPredicate,StarPredicate
- Direct Known Subclasses:
ListColumnPredicate,LiteralStarPredicate,MinusStarPredicate,RangeColumnPredicate,ValueColumnPredicate
A
AbstractColumnPredicate is an abstract implementation for
StarColumnPredicate.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classFactory forStarPredicates andStarColumnPredicates.Nested classes/interfaces inherited from interface mondrian.rolap.StarColumnPredicate
StarColumnPredicate.Overlap -
Field Summary
FieldsFields inherited from interface mondrian.rolap.StarPredicate
WILDCARD -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedAbstractColumnPredicate(RolapStar.Column constrainedColumn) Creates an AbstractColumnPredicate. -
Method Summary
Modifier and TypeMethodDescriptionand(StarPredicate predicate) Returns this intersection of this Predicate with another.protected static List<StarColumnPredicate>cloneListWithColumn(RolapStar.Column column, List<StarColumnPredicate> list) booleanequalConstraint(StarPredicate that) Returns whether this Predicate has the same constraining effect as the other constraint.booleanEvaluates a constraint against a list of values.Returns the column constrained by this predicate.Returns a bitmap of constrained columns to speed up comparisonReturns a list of constrained columns.or(StarPredicate predicate) Returns this union of this Predicate with another.orColumn(StarColumnPredicate predicate) Returns this union of this Predicate with another.voidtoSql(SqlQuery sqlQuery, StringBuilder buf) toString()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface mondrian.rolap.StarColumnPredicate
cloneWithColumn, evaluate, intersect, mightIntersect, minus, valuesMethods inherited from interface mondrian.rolap.StarPredicate
describe
-
Field Details
-
constrainedColumn
-
-
Constructor Details
-
AbstractColumnPredicate
Creates an AbstractColumnPredicate.- Parameters:
constrainedColumn- Constrained column
-
-
Method Details
-
toString
-
getConstrainedColumn
Description copied from interface:StarColumnPredicateReturns the column constrained by this predicate.- Specified by:
getConstrainedColumnin interfaceStarColumnPredicate- Returns:
- Column constrained by this predicate.
-
getConstrainedColumnList
Description copied from interface:StarPredicateReturns a list of constrained columns.- Specified by:
getConstrainedColumnListin interfaceStarPredicate- Returns:
- List of constrained columns
-
getConstrainedColumnBitKey
Description copied from interface:StarPredicateReturns a bitmap of constrained columns to speed up comparison- Specified by:
getConstrainedColumnBitKeyin interfaceStarPredicate- Returns:
- bitmap representing all constraining columns.
-
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.- Specified by:
evaluatein interfaceStarPredicate- Parameters:
valueList- List of values, one for each constrained column- Returns:
- Whether constraint holds for given set of values
-
equalConstraint
Description copied from interface:StarPredicateReturns whether this Predicate has the same constraining effect as the other constraint. This is weaker thanObject.equals(Object): it is possible for two different members to constrain the same column in the same way.- Specified by:
equalConstraintin interfaceStarPredicate- Parameters:
that- Other predicate- Returns:
- whether the other predicate is equivalent
-
or
Description copied from interface:StarPredicateReturns this union of this Predicate with another. The result is a Predicate which holds whenever either predicate holds.- Specified by:
orin interfaceStarPredicate- Parameters:
predicate- Predicate- Returns:
- Combined predicate
-
orColumn
Description copied from interface:StarColumnPredicateReturns this union of this Predicate with another.Unlike
StarPredicate.or(mondrian.rolap.StarPredicate), the other predicate must be on this column, and the result is a column predicate.- Specified by:
orColumnin interfaceStarColumnPredicate- Parameters:
predicate- Another predicate on this column- Returns:
- Union predicate on this column
-
and
Description copied from interface:StarPredicateReturns this intersection of this Predicate with another. The result is a Predicate which holds whenever both predicates hold.- Specified by:
andin interfaceStarPredicate- Parameters:
predicate- Predicate- Returns:
- Combined predicate
-
toSql
- Specified by:
toSqlin interfaceStarPredicate
-
cloneListWithColumn
protected static List<StarColumnPredicate> cloneListWithColumn(RolapStar.Column column, List<StarColumnPredicate> list)
-