|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectmondrian.rolap.agg.AbstractColumnPredicate
public abstract class AbstractColumnPredicate
A AbstractColumnPredicate is an abstract implementation for
StarColumnPredicate.
| Nested Class Summary | |
|---|---|
static class |
AbstractColumnPredicate.Factory
Factory for StarPredicates and
StarColumnPredicates. |
| Nested classes/interfaces inherited from interface mondrian.rolap.StarColumnPredicate |
|---|
StarColumnPredicate.Overlap |
| Field Summary | |
|---|---|
protected RolapStar.Column |
constrainedColumn
|
| Fields inherited from interface mondrian.rolap.StarPredicate |
|---|
WILDCARD |
| Constructor Summary | |
|---|---|
protected |
AbstractColumnPredicate(RolapStar.Column constrainedColumn)
Creates an AbstractColumnPredicate. |
| Method Summary | |
|---|---|
StarPredicate |
and(StarPredicate predicate)
Returns this intersection of this Predicate with another. |
protected static List<StarColumnPredicate> |
cloneListWithColumn(RolapStar.Column column,
List<StarColumnPredicate> list)
|
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. |
RolapStar.Column |
getConstrainedColumn()
Returns the column constrained by this predicate. |
BitKey |
getConstrainedColumnBitKey()
Returns a bitmap of constrained columns to speed up comparison |
List<RolapStar.Column> |
getConstrainedColumnList()
Returns a list of constrained columns. |
StarPredicate |
or(StarPredicate predicate)
Returns this union of this Predicate with another. |
StarColumnPredicate |
orColumn(StarColumnPredicate predicate)
Returns this union of this Predicate with another. |
void |
toSql(SqlQuery sqlQuery,
StringBuilder buf)
|
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface mondrian.rolap.StarColumnPredicate |
|---|
cloneWithColumn, evaluate, intersect, mightIntersect, minus, values |
| Methods inherited from interface mondrian.rolap.StarPredicate |
|---|
describe |
| Field Detail |
|---|
protected final RolapStar.Column constrainedColumn
| Constructor Detail |
|---|
protected AbstractColumnPredicate(RolapStar.Column constrainedColumn)
constrainedColumn - Constrained column| Method Detail |
|---|
public String toString()
toString in class Objectpublic RolapStar.Column getConstrainedColumn()
StarColumnPredicate
getConstrainedColumn in interface StarColumnPredicatepublic List<RolapStar.Column> getConstrainedColumnList()
StarPredicate
getConstrainedColumnList in interface StarPredicatepublic BitKey getConstrainedColumnBitKey()
StarPredicate
getConstrainedColumnBitKey in interface StarPredicatepublic boolean evaluate(List<Object> valueList)
StarPredicateIf one of the values is StarPredicate.WILDCARD, returns true if constraint is
true for all possible values of that column.
evaluate in interface StarPredicatevalueList - List of values, one for each constrained column
public 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 or(StarPredicate predicate)
StarPredicate
or in interface StarPredicatepredicate - Predicate
public StarColumnPredicate orColumn(StarColumnPredicate predicate)
StarColumnPredicateUnlike StarPredicate.or(mondrian.rolap.StarPredicate), the other predicate must be on this column, and
the result is a column predicate.
orColumn in interface StarColumnPredicatepredicate - Another predicate on this column
public StarPredicate and(StarPredicate predicate)
StarPredicate
and in interface StarPredicatepredicate - Predicate
public void toSql(SqlQuery sqlQuery,
StringBuilder buf)
toSql in interface StarPredicate
protected static List<StarColumnPredicate> cloneListWithColumn(RolapStar.Column column,
List<StarColumnPredicate> list)
|
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||