|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectmondrian.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 strict
public MemberTuplePredicate(RolapCube baseCube,
RolapCubeMember member)
baseCube - base cube for virtual membersmember - Member| Method Detail |
|---|
public int hashCode()
hashCode in class Objectpublic boolean equals(Object obj)
equals in class Objectpublic List<RolapStar.Column> getConstrainedColumnList()
getConstrainedColumnList in interface StarPredicatepublic BitKey getConstrainedColumnBitKey()
StarPredicate
getConstrainedColumnBitKey in interface StarPredicatepublic boolean equalConstraint(StarPredicate that)
StarPredicateObject.equals(Object): it
is possible for two different members to constrain the same column in the
same way.
equalConstraint in interface StarPredicatethat - Other predicate
public StarPredicate minus(StarPredicate predicate)
StarPredicate
minus in interface StarPredicatepredicate - Predicate
public StarPredicate or(StarPredicate predicate)
StarPredicate
or in interface StarPredicatepredicate - Predicate
public StarPredicate and(StarPredicate predicate)
StarPredicate
and in interface StarPredicatepredicate - Predicate
public boolean evaluate(List<Object> valueList)
evaluate in interface StarPredicatevalueList - List of values, one for each constrained column
public void describe(StringBuilder buf)
StarPredicateStringBuilder.
For example:
describe in interface StarPredicatebuf - Builder to append to
public 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 | ||||||||