public class MemberTuplePredicate extends Object implements StarPredicate
WILDCARD
Constructor and Description |
---|
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.
|
Modifier and Type | Method and Description |
---|---|
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) |
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
- Memberpublic 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 predicatepublic StarPredicate minus(StarPredicate predicate)
StarPredicate
minus
in interface StarPredicate
predicate
- Predicatepublic StarPredicate or(StarPredicate predicate)
StarPredicate
or
in interface StarPredicate
predicate
- Predicatepublic StarPredicate and(StarPredicate predicate)
StarPredicate
and
in interface StarPredicate
predicate
- Predicatepublic boolean evaluate(List<Object> valueList)
evaluate
in interface StarPredicate
valueList
- List of values, one for each constrained columnpublic 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
Copyright © 2018 Hitachi Vantara. All rights reserved.