|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object mondrian.rolap.agg.AbstractColumnPredicate
public abstract class AbstractColumnPredicate
A AbstractColumnPredicate
is an abstract implementation for
StarColumnPredicate
.
Nested Class Summary | |
---|---|
static class |
AbstractColumnPredicate.Factory
Factory for StarPredicate s and
StarColumnPredicate s. |
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 columnMethod Detail |
---|
public String toString()
toString
in class Object
public RolapStar.Column getConstrainedColumn()
StarColumnPredicate
getConstrainedColumn
in interface StarColumnPredicate
public List<RolapStar.Column> getConstrainedColumnList()
StarPredicate
getConstrainedColumnList
in interface StarPredicate
public BitKey getConstrainedColumnBitKey()
StarPredicate
getConstrainedColumnBitKey
in interface StarPredicate
public boolean evaluate(List<Object> valueList)
StarPredicate
If one of the values is StarPredicate.WILDCARD
, returns true if constraint is
true for all possible values of that column.
evaluate
in interface StarPredicate
valueList
- List of values, one for each constrained column
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 predicate
public StarPredicate or(StarPredicate predicate)
StarPredicate
or
in interface StarPredicate
predicate
- Predicate
public StarColumnPredicate orColumn(StarColumnPredicate predicate)
StarColumnPredicate
Unlike StarPredicate.or(mondrian.rolap.StarPredicate)
, the other predicate must be on this column, and
the result is a column predicate.
orColumn
in interface StarColumnPredicate
predicate
- Another predicate on this column
public StarPredicate and(StarPredicate predicate)
StarPredicate
and
in interface StarPredicate
predicate
- 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 |