class RolapTupleCalculation extends Object implements RolapCalculation
RolapCalculation
that changes one or more dimensions, then evaluates a given calculation.
It is used to implement sets in slicers, in particular sets of tuples in the slicer.
Constructor and Description |
---|
RolapTupleCalculation(List<RolapHierarchy> hierarchyList,
Calc calc)
Creates a RolapTupleCalculation.
|
Modifier and Type | Method and Description |
---|---|
boolean |
containsAggregateFunction()
Returns whether this calculation contains an aggregate function.
|
boolean |
equals(Object obj) |
Calc |
getCompiledExpression(RolapEvaluatorRoot root)
Returns the compiled expression to evaluate the scalar value of the
current cell.
|
int |
getHierarchyOrdinal()
Returns the ordinal of this calculation; to resolve ties.
|
int |
getSolveOrder()
Returns the solve order of this calculation.
|
int |
hashCode() |
boolean |
isCalculatedInQuery()
Returns whether this calculation is a member is computed from a
WITH MEMBER clause in an MDX query. |
void |
setContextIn(RolapEvaluator evaluator)
Pushes this calculated member or tuple onto the stack of evaluation
contexts, and sets the context to the default member of the hierarchy.
|
String |
toString() |
public RolapTupleCalculation(List<RolapHierarchy> hierarchyList, Calc calc)
hierarchyList
- List of hierarchies to be replaced.calc
- Compiled scalar expression to compute cellpublic void setContextIn(RolapEvaluator evaluator)
RolapCalculation
setContextIn
in interface RolapCalculation
evaluator
- Evaluatorpublic int getSolveOrder()
RolapCalculation
getSolveOrder
in interface RolapCalculation
public int getHierarchyOrdinal()
RolapCalculation
getHierarchyOrdinal
in interface RolapCalculation
public Calc getCompiledExpression(RolapEvaluatorRoot root)
RolapCalculation
getCompiledExpression
in interface RolapCalculation
root
- Root evaluation contextpublic boolean containsAggregateFunction()
RolapCalculation
containsAggregateFunction
in interface RolapCalculation
public boolean isCalculatedInQuery()
RolapCalculation
WITH MEMBER
clause in an MDX query.isCalculatedInQuery
in interface RolapCalculation