|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface StarColumnPredicate
Refinement of StarPredicate
which constrains precisely one column.
Nested Class Summary | |
---|---|
static class |
StarColumnPredicate.Overlap
Returned by intersect(mondrian.rolap.StarColumnPredicate) ,
describes whether two predicates overlap, and if so, the remaining
predicate. |
Field Summary |
---|
Fields inherited from interface mondrian.rolap.StarPredicate |
---|
WILDCARD |
Method Summary | |
---|---|
StarColumnPredicate |
cloneWithColumn(RolapStar.Column column)
This method is required because unfortunately some ColumnPredicate objects are created without a column. |
boolean |
evaluate(Object value)
Returns whether this constraint would return true for a
given value. |
RolapStar.Column |
getConstrainedColumn()
Returns the column constrained by this predicate. |
StarColumnPredicate.Overlap |
intersect(StarColumnPredicate predicate)
Applies this predicate to a predicate from the axis of a segment, and tests for overlap. |
boolean |
mightIntersect(StarPredicate other)
Returns whether this predicate might intersect another predicate. |
StarColumnPredicate |
minus(StarPredicate predicate)
Returns the logical inverse of this Predicate. |
StarColumnPredicate |
orColumn(StarColumnPredicate predicate)
Returns this union of this Predicate with another. |
void |
values(Collection<Object> collection)
Adds the values in this constraint to a collection. |
Methods inherited from interface mondrian.rolap.StarPredicate |
---|
and, describe, equalConstraint, evaluate, getConstrainedColumnBitKey, getConstrainedColumnList, or, toSql |
Method Detail |
---|
void values(Collection<Object> collection)
collection
- Collection to add values toboolean evaluate(Object value)
true
for a
given value.
value
- Value
RolapStar.Column getConstrainedColumn()
StarColumnPredicate.Overlap intersect(StarColumnPredicate predicate)
predicate
- Predicate
boolean mightIntersect(StarPredicate other)
other
- Other constraint
StarColumnPredicate minus(StarPredicate predicate)
StarPredicate
minus
in interface StarPredicate
predicate
- Predicate
StarColumnPredicate orColumn(StarColumnPredicate predicate)
Unlike StarPredicate.or(mondrian.rolap.StarPredicate)
, the other predicate must be on this column, and
the result is a column predicate.
predicate
- Another predicate on this column
StarColumnPredicate cloneWithColumn(RolapStar.Column column)
We call this method to provide a fake column, then call
StarPredicate.toSql(mondrian.rolap.sql.SqlQuery, StringBuilder)
.
todo: remove this method when
bug 1767776
and
bug 1767779
are fixed.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |