mondrian.rolap
Class RolapNativeTopCount.TopCountConstraint

java.lang.Object
  extended by mondrian.rolap.SqlContextConstraint
      extended by mondrian.rolap.RolapNativeSet.SetConstraint
          extended by mondrian.rolap.RolapNativeTopCount.TopCountConstraint
All Implemented Interfaces:
MemberChildrenConstraint, SqlConstraint, TupleConstraint
Enclosing class:
RolapNativeTopCount

static class RolapNativeTopCount.TopCountConstraint
extends RolapNativeSet.SetConstraint

 

Field Summary
(package private)  boolean ascending
           
(package private)  String orderByExpr
           
 
Fields inherited from class mondrian.rolap.RolapNativeSet.SetConstraint
args
 
Fields inherited from class mondrian.rolap.SqlContextConstraint
cacheKey
 
Constructor Summary
RolapNativeTopCount.TopCountConstraint(RolapNativeSet.CrossJoinArg[] args, RolapEvaluator evaluator, String orderByExpr, boolean ascending)
           
 
Method Summary
 void addConstraint(SqlQuery sqlQuery, RolapCube baseCube)
          Called from LevelMembers: restricts the SQL resultset to the current context.
 Object getCacheKey()
          returns a key to cache the result
protected  boolean isJoinRequired()
          we alwas need to join the fact table because we want to evalutate the top count expression which involves a fact.
 
Methods inherited from class mondrian.rolap.RolapNativeSet.SetConstraint
getMemberChildrenConstraint
 
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

orderByExpr

String orderByExpr

ascending

boolean ascending
Constructor Detail

RolapNativeTopCount.TopCountConstraint

public RolapNativeTopCount.TopCountConstraint(RolapNativeSet.CrossJoinArg[] args,
                                              RolapEvaluator evaluator,
                                              String orderByExpr,
                                              boolean ascending)
Method Detail

isJoinRequired

protected boolean isJoinRequired()
we alwas need to join the fact table because we want to evalutate the top count expression which involves a fact.

Overrides:
isJoinRequired in class RolapNativeSet.SetConstraint

addConstraint

public void addConstraint(SqlQuery sqlQuery,
                          RolapCube baseCube)
Description copied from class: SqlContextConstraint
Called from LevelMembers: restricts the SQL resultset to the current context.

Specified by:
addConstraint in interface TupleConstraint
Overrides:
addConstraint in class RolapNativeSet.SetConstraint
Parameters:
sqlQuery - the query to modify
baseCube - base cube for virtual cube constraints

getCacheKey

public Object getCacheKey()
Description copied from class: RolapNativeSet.SetConstraint
returns a key to cache the result

Specified by:
getCacheKey in interface SqlConstraint
Overrides:
getCacheKey in class RolapNativeSet.SetConstraint
Returns:
valid key or null to prevent the result from being cached

SourceForge.net_Logo