|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object mondrian.rolap.agg.MemberTuplePredicate
public class MemberTuplePredicate
Predicate which constrains a column to a particular member, or a range above or below a member, or a range between two members.
Field Summary |
---|
Fields inherited from interface mondrian.rolap.StarPredicate |
---|
WILDCARD |
Constructor Summary | |
---|---|
MemberTuplePredicate(RolapCube baseCube,
RolapCubeMember member)
Creates a MemberTuplePredicate which evaluates to true for a given member. |
|
MemberTuplePredicate(RolapCube baseCube,
RolapMember lower,
boolean lowerStrict,
RolapMember upper,
boolean upperStrict)
Creates a MemberTuplePredicate which evaluates to true for a given range of members. |
Method Summary | |
---|---|
StarPredicate |
and(StarPredicate predicate)
Returns this intersection of this Predicate with another. |
void |
describe(StringBuilder buf)
Appends a description of this predicate to a StringBuilder . |
boolean |
equalConstraint(StarPredicate that)
Returns whether this Predicate has the same constraining effect as the other constraint. |
boolean |
equals(Object obj)
|
boolean |
evaluate(List<Object> valueList)
Evaluates a constraint against a list of values. |
BitKey |
getConstrainedColumnBitKey()
Returns a bitmap of constrained columns to speed up comparison |
List<RolapStar.Column> |
getConstrainedColumnList()
Returns a list of constrained columns. |
int |
hashCode()
|
StarPredicate |
minus(StarPredicate predicate)
Returns the logical inverse of this Predicate. |
StarPredicate |
or(StarPredicate predicate)
Returns this union of this Predicate with another. |
void |
toSql(SqlQuery sqlQuery,
StringBuilder buf)
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MemberTuplePredicate(RolapCube baseCube, RolapMember lower, boolean lowerStrict, RolapMember upper, boolean upperStrict)
The range can be open above or below, but at least one bound is required.
baseCube
- base cube for virtual memberslower
- Member which forms the lower bound, or null if range is
open belowlowerStrict
- Whether lower bound of range is strictupper
- Member which forms the upper bound, or null if range is
open aboveupperStrict
- Whether upper bound of range is strictpublic MemberTuplePredicate(RolapCube baseCube, RolapCubeMember member)
baseCube
- base cube for virtual membersmember
- MemberMethod Detail |
---|
public int hashCode()
hashCode
in class Object
public boolean equals(Object obj)
equals
in class Object
public List<RolapStar.Column> getConstrainedColumnList()
getConstrainedColumnList
in interface StarPredicate
public BitKey getConstrainedColumnBitKey()
StarPredicate
getConstrainedColumnBitKey
in interface StarPredicate
public boolean equalConstraint(StarPredicate that)
StarPredicate
Object.equals(Object)
: it
is possible for two different members to constrain the same column in the
same way.
equalConstraint
in interface StarPredicate
that
- Other predicate
public StarPredicate minus(StarPredicate predicate)
StarPredicate
minus
in interface StarPredicate
predicate
- Predicate
public StarPredicate or(StarPredicate predicate)
StarPredicate
or
in interface StarPredicate
predicate
- Predicate
public StarPredicate and(StarPredicate predicate)
StarPredicate
and
in interface StarPredicate
predicate
- Predicate
public boolean evaluate(List<Object> valueList)
evaluate
in interface StarPredicate
valueList
- List of values, one for each constrained column
public void describe(StringBuilder buf)
StarPredicate
StringBuilder
.
For example:
describe
in interface StarPredicate
buf
- Builder to append topublic void toSql(SqlQuery sqlQuery, StringBuilder buf)
toSql
in interface StarPredicate
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |