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
StarPredicate s and
StarColumnPredicate s. |
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, wait
cloneWithColumn, evaluate, intersect, mightIntersect, minus, values
describe
protected final RolapStar.Column constrainedColumn
protected AbstractColumnPredicate(RolapStar.Column constrainedColumn)
constrainedColumn
- Constrained columnpublic 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 columnpublic 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 predicatepublic StarPredicate or(StarPredicate predicate)
StarPredicate
or
in interface StarPredicate
predicate
- Predicatepublic 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 columnpublic StarPredicate and(StarPredicate predicate)
StarPredicate
and
in interface StarPredicate
predicate
- Predicatepublic void toSql(SqlQuery sqlQuery, StringBuilder buf)
toSql
in interface StarPredicate
protected static List<StarColumnPredicate> cloneListWithColumn(RolapStar.Column column, List<StarColumnPredicate> list)
Copyright © 2018 Hitachi Vantara. All rights reserved.