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
Modifier and TypeFieldDescriptionprotected final List<StarPredicate>
protected final List<RolapStar.Column>
Fields inherited from interface mondrian.rolap.StarPredicate
WILDCARD
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
describe
(StringBuilder buf) Appends a description of this predicate to aStringBuilder
.boolean
equalConstraint
(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 String
getOp()
int
hashCode()
minus
(StarPredicate predicate) Returns the logical inverse of this Predicate.void
toSql
(SqlQuery sqlQuery, StringBuilder buf) toString()
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface mondrian.rolap.StarPredicate
and, evaluate, or
-
Field Details
-
children
-
columns
-
-
Constructor Details
-
ListPredicate
-
-
Method Details
-
getConstrainedColumnList
Description copied from interface:StarPredicate
Returns a list of constrained columns.- Specified by:
getConstrainedColumnList
in interfaceStarPredicate
- Returns:
- List of constrained columns
-
getConstrainedColumnBitKey
Description copied from interface:StarPredicate
Returns a bitmap of constrained columns to speed up comparison- Specified by:
getConstrainedColumnBitKey
in interfaceStarPredicate
- Returns:
- bitmap representing all constraining columns.
-
getChildren
-
hashCode
public int hashCode() -
equalConstraint
Description copied from interface:StarPredicate
Returns 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:
equalConstraint
in interfaceStarPredicate
- Parameters:
that
- Other predicate- Returns:
- whether the other predicate is equivalent
-
minus
Description copied from interface:StarPredicate
Returns the logical inverse of this Predicate. The result is a Predicate which holds whenever this predicate holds but the other does not.- Specified by:
minus
in interfaceStarPredicate
- Parameters:
predicate
- Predicate- Returns:
- Combined predicate
-
toSql
- Specified by:
toSql
in interfaceStarPredicate
-
getOp
-
describe
Description copied from interface:StarPredicate
Appends a description of this predicate to aStringBuilder
. For example:- =any
- =5
- in (2, 4, 6)
- Specified by:
describe
in interfaceStarPredicate
- Parameters:
buf
- Builder to append to
-
toString
-