Package mondrian.rolap.agg
Class MemberColumnPredicate
- java.lang.Object
-
- mondrian.rolap.agg.AbstractColumnPredicate
-
- mondrian.rolap.agg.ValueColumnPredicate
-
- mondrian.rolap.agg.MemberColumnPredicate
-
- All Implemented Interfaces:
Comparable,StarColumnPredicate,StarPredicate
public class MemberColumnPredicate extends ValueColumnPredicate
Column constraint defined by a member.- Since:
- Mar 16, 2006
- Author:
- jhyde
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class mondrian.rolap.agg.AbstractColumnPredicate
AbstractColumnPredicate.Factory
-
Nested classes/interfaces inherited from interface mondrian.rolap.StarColumnPredicate
StarColumnPredicate.Overlap
-
-
Field Summary
-
Fields inherited from class mondrian.rolap.agg.AbstractColumnPredicate
constrainedColumn
-
Fields inherited from interface mondrian.rolap.StarPredicate
WILDCARD
-
-
Constructor Summary
Constructors Constructor Description MemberColumnPredicate(RolapStar.Column column, RolapMember member)Creates a MemberColumnPredicate
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StarColumnPredicatecloneWithColumn(RolapStar.Column column)This method is required because unfortunately some ColumnPredicate objects are created without a column.voiddescribe(StringBuilder buf)Appends a description of this predicate to aStringBuilder.booleanequals(Object other)List<RolapStar.Column>getConstrainedColumnList()Returns a list of constrained columns.RolapMembergetMember()Returns theMember.inthashCode()StringtoString()-
Methods inherited from class mondrian.rolap.agg.ValueColumnPredicate
checkInList, compareTo, equalConstraint, evaluate, getValue, intersect, mightIntersect, minus, toInListSql, toSql, values
-
Methods inherited from class mondrian.rolap.agg.AbstractColumnPredicate
and, cloneListWithColumn, evaluate, getConstrainedColumn, getConstrainedColumnBitKey, or, orColumn
-
-
-
-
Constructor Detail
-
MemberColumnPredicate
public MemberColumnPredicate(RolapStar.Column column, RolapMember member)
Creates a MemberColumnPredicate- Parameters:
column- Constrained columnmember- Member to constrain column to; must not be null
-
-
Method Detail
-
toString
public String toString()
- Overrides:
toStringin classValueColumnPredicate
-
getConstrainedColumnList
public List<RolapStar.Column> getConstrainedColumnList()
Description copied from interface:StarPredicateReturns a list of constrained columns.- Specified by:
getConstrainedColumnListin interfaceStarPredicate- Overrides:
getConstrainedColumnListin classAbstractColumnPredicate- Returns:
- List of constrained columns
-
getMember
public RolapMember getMember()
Returns theMember.- Returns:
- Returns the
Member, not null.
-
equals
public boolean equals(Object other)
- Overrides:
equalsin classValueColumnPredicate
-
hashCode
public int hashCode()
- Overrides:
hashCodein classValueColumnPredicate
-
describe
public void describe(StringBuilder buf)
Description copied from interface:StarPredicateAppends a description of this predicate to aStringBuilder. For example:- =any
- =5
- in (2, 4, 6)
- Specified by:
describein interfaceStarPredicate- Overrides:
describein classValueColumnPredicate- Parameters:
buf- Builder to append to
-
cloneWithColumn
public StarColumnPredicate cloneWithColumn(RolapStar.Column column)
Description copied from interface:StarColumnPredicateThis method is required because unfortunately some ColumnPredicate objects are created without a 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 MONDRIAN-313andbug MONDRIAN-314are fixed.- Specified by:
cloneWithColumnin interfaceStarColumnPredicate- Overrides:
cloneWithColumnin classValueColumnPredicate
-
-