|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface StarPredicate
Condition which constrains a set of values of a single
RolapStar.Column or a set of columns.
For example, the predicate
Range([Time].[1997].[Q3], [Time].[1998].[Q2])
constrains the year and quarter columns:
((year = 1997 and quarter >= 'Q3')
or (year > 1997))
and ((year = 1998 and quarter <= 'Q2')
or (year < 1998))
| Field Summary | |
|---|---|
static Object |
WILDCARD
Wildcard value for evaluate(java.util.List). |
| 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 |
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. |
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)
|
| Field Detail |
|---|
static final Object WILDCARD
evaluate(java.util.List).
| Method Detail |
|---|
List<RolapStar.Column> getConstrainedColumnList()
BitKey getConstrainedColumnBitKey()
void describe(StringBuilder buf)
StringBuilder.
For example:
buf - Builder to append toboolean evaluate(List<Object> valueList)
If one of the values is WILDCARD, returns true if constraint is
true for all possible values of that column.
valueList - List of values, one for each constrained column
boolean equalConstraint(StarPredicate that)
Object.equals(Object): it
is possible for two different members to constrain the same column in the
same way.
that - Other predicate
StarPredicate minus(StarPredicate predicate)
predicate - Predicate
StarPredicate or(StarPredicate predicate)
predicate - Predicate
StarPredicate and(StarPredicate predicate)
predicate - Predicate
void toSql(SqlQuery sqlQuery,
StringBuilder buf)
|
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||