|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object mondrian.rolap.DefaultTupleConstraint
public class DefaultTupleConstraint
TupleConstraint which does not restrict the result.
Constructor Summary | |
---|---|
protected |
DefaultTupleConstraint()
|
Method Summary | |
---|---|
void |
addConstraint(SqlQuery sqlQuery,
RolapCube baseCube)
Modifies a Level.Members query. |
void |
addLevelConstraint(SqlQuery query,
RolapCube baseCube,
AggStar aggStar,
RolapLevel level)
Will be called multiple times for every "group by" level in Level.Members query, i.e. |
Object |
getCacheKey()
Returns a key that becomes part of the key for caching the result of the SQL query. |
Evaluator |
getEvaluator()
|
MemberChildrenConstraint |
getMemberChildrenConstraint(RolapMember parent)
When the members of a level are fetched, the result is grouped by into parents and their children. |
static TupleConstraint |
instance()
|
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
protected DefaultTupleConstraint()
Method Detail |
---|
public void addConstraint(SqlQuery sqlQuery, RolapCube baseCube)
TupleConstraint
addConstraint
in interface TupleConstraint
sqlQuery
- the query to modifybaseCube
- base cube for virtual cube constraintspublic void addLevelConstraint(SqlQuery query, RolapCube baseCube, AggStar aggStar, RolapLevel level)
TupleConstraint
addLevelConstraint
in interface TupleConstraint
query
- the query to modifybaseCube
- base cube for virtual cube constraintsaggStar
- Aggregate table, or null if query is against fact tablelevel
- the level which is accessed in the Level.Members querypublic MemberChildrenConstraint getMemberChildrenConstraint(RolapMember parent)
TupleConstraint
The returned MemberChildrenConstraint must be one that would have returned the same children for the given parent as the MemberLevel query has found for that parent.
If null is returned, the parent/children will not be cached (but the level/members still will be).
getMemberChildrenConstraint
in interface TupleConstraint
public String toString()
toString
in class Object
public Object getCacheKey()
SqlConstraint
getCacheKey
in interface SqlConstraint
public static TupleConstraint instance()
public Evaluator getEvaluator()
getEvaluator
in interface TupleConstraint
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |