|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectmondrian.rolap.SqlContextConstraint
mondrian.rolap.RolapNativeSet.SetConstraint
protected abstract static class RolapNativeSet.SetConstraint
Constraint for non empty {crossjoin, member.children, member.descendants, level.members}
| Field Summary | |
|---|---|
(package private) CrossJoinArg[] |
args
|
| Constructor Summary | |
|---|---|
RolapNativeSet.SetConstraint(CrossJoinArg[] args,
RolapEvaluator evaluator,
boolean strict)
|
|
| Method Summary | |
|---|---|
void |
addConstraint(SqlQuery sqlQuery,
RolapCube baseCube,
AggStar aggStar)
Called from LevelMembers: restricts the SQL resultset to the current context. |
Object |
getCacheKey()
returns a key to cache the result |
MemberChildrenConstraint |
getMemberChildrenConstraint(RolapMember parent)
Returns null to prevent the member/childern from being cached. |
protected boolean |
isJoinRequired()
Returns whether a join with the fact table is required. |
| Methods inherited from class mondrian.rolap.SqlContextConstraint |
|---|
addLevelConstraint, addMemberConstraint, addMemberConstraint, getEvaluator, isValidContext, isValidContext |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
CrossJoinArg[] args
| Constructor Detail |
|---|
RolapNativeSet.SetConstraint(CrossJoinArg[] args,
RolapEvaluator evaluator,
boolean strict)
| Method Detail |
|---|
protected boolean isJoinRequired()
If there is a crossjoin, we need to join the fact table - even if the evaluator context is empty.
isJoinRequired in class SqlContextConstraint
public void addConstraint(SqlQuery sqlQuery,
RolapCube baseCube,
AggStar aggStar)
SqlContextConstraint
addConstraint in interface TupleConstraintaddConstraint in class SqlContextConstraintsqlQuery - the query to modifybaseCube - base cube for virtual cube constraintsaggStar - aggregate star to usepublic MemberChildrenConstraint getMemberChildrenConstraint(RolapMember parent)
getMemberChildrenConstraint in interface TupleConstraintgetMemberChildrenConstraint in class SqlContextConstraintpublic Object getCacheKey()
getCacheKey in interface SqlConstraintgetCacheKey in class SqlContextConstraint
|
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||