public abstract class AbstractColumnPredicate extends Object implements StarColumnPredicate
AbstractColumnPredicate is an abstract implementation for
StarColumnPredicate.| Modifier and Type | Class and Description |
|---|---|
static class |
AbstractColumnPredicate.Factory
Factory for
StarPredicates and
StarColumnPredicates. |
StarColumnPredicate.Overlap| Modifier and Type | Field and Description |
|---|---|
protected RolapStar.Column |
constrainedColumn |
WILDCARD| Modifier | Constructor and Description |
|---|---|
protected |
AbstractColumnPredicate(RolapStar.Column constrainedColumn)
Creates an AbstractColumnPredicate.
|
| Modifier and Type | Method and Description |
|---|---|
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() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitcloneWithColumn, evaluate, intersect, mightIntersect, minus, valuesdescribeprotected final RolapStar.Column constrainedColumn
protected AbstractColumnPredicate(RolapStar.Column constrainedColumn)
constrainedColumn - Constrained columnpublic RolapStar.Column getConstrainedColumn()
StarColumnPredicategetConstrainedColumn in interface StarColumnPredicatepublic List<RolapStar.Column> getConstrainedColumnList()
StarPredicategetConstrainedColumnList in interface StarPredicatepublic BitKey getConstrainedColumnBitKey()
StarPredicategetConstrainedColumnBitKey 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 columnpublic 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 predicatepublic StarPredicate or(StarPredicate predicate)
StarPredicateor in interface StarPredicatepredicate - Predicatepublic 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 columnpublic StarPredicate and(StarPredicate predicate)
StarPredicateand in interface StarPredicatepredicate - Predicatepublic void toSql(SqlQuery sqlQuery, StringBuilder buf)
toSql in interface StarPredicateprotected static List<StarColumnPredicate> cloneListWithColumn(RolapStar.Column column, List<StarColumnPredicate> list)
Copyright © 2021 Hitachi Vantara. All rights reserved.