Package mondrian.rolap.agg
Class ListPredicate
java.lang.Object
mondrian.rolap.agg.ListPredicate
- All Implemented Interfaces:
StarPredicate
- Direct Known Subclasses:
AndPredicate,OrPredicate
Base class for
AndPredicate and OrPredicate.- Author:
- jhyde
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final List<StarPredicate>protected final List<RolapStar.Column>Fields inherited from interface mondrian.rolap.StarPredicate
WILDCARD -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddescribe(StringBuilder buf) Appends a description of this predicate to aStringBuilder.booleanequalConstraint(StarPredicate that) Returns whether this Predicate has the same constraining effect as the other constraint.Returns a bitmap of constrained columns to speed up comparisonReturns a list of constrained columns.protected abstract StringgetOp()inthashCode()minus(StarPredicate predicate) Returns the logical inverse of this Predicate.voidtoSql(SqlQuery sqlQuery, StringBuilder buf) toString()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface mondrian.rolap.StarPredicate
and, evaluate, or
-
Field Details
-
children
-
columns
-
-
Constructor Details
-
ListPredicate
-
-
Method Details
-
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.
-
getChildren
-
hashCode
public int hashCode() -
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
-
minus
Description copied from interface:StarPredicateReturns the logical inverse of this Predicate. The result is a Predicate which holds whenever this predicate holds but the other does not.- Specified by:
minusin interfaceStarPredicate- Parameters:
predicate- Predicate- Returns:
- Combined predicate
-
toSql
- Specified by:
toSqlin interfaceStarPredicate
-
getOp
-
describe
Description copied from interface:StarPredicateAppends a description of this predicate to aStringBuilder. For example:- =any
- =5
- in (2, 4, 6)
- Specified by:
describein interfaceStarPredicate- Parameters:
buf- Builder to append to
-
toString
-