mondrian.calc.impl
Class AbstractTupleCalc

java.lang.Object
  extended by mondrian.calc.impl.AbstractCalc
      extended by mondrian.calc.impl.AbstractTupleCalc
All Implemented Interfaces:
Calc, TupleCalc
Direct Known Subclasses:
TupleFunDef.CalcImpl

public abstract class AbstractTupleCalc
extends AbstractCalc
implements TupleCalc

Abstract implementation of the TupleCalc interface.

The derived class must implement the TupleCalc.evaluateTuple(mondrian.olap.Evaluator) method, and the evaluate(mondrian.olap.Evaluator) method will call it.

Since:
Sep 27, 2005
Version:
$Id: //open/mondrian/src/main/mondrian/calc/impl/AbstractTupleCalc.java#4 $
Author:
jhyde

Field Summary
 
Fields inherited from class mondrian.calc.impl.AbstractCalc
exp, type
 
Constructor Summary
protected AbstractTupleCalc(Exp exp, Calc[] calcs)
          Creates an AbstractTupleCalc.
 
Method Summary
 java.lang.Object evaluate(Evaluator evaluator)
          Evaluates this expression.
 
Methods inherited from class mondrian.calc.impl.AbstractCalc
accept, anyDepends, anyDependsButFirst, butDepends, dependsOn, getArguments, getCalcs, getName, getResultStyle, getType, simplifyEvaluator
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface mondrian.calc.TupleCalc
evaluateTuple
 
Methods inherited from interface mondrian.calc.Calc
accept, dependsOn, getResultStyle, getType
 

Constructor Detail

AbstractTupleCalc

protected AbstractTupleCalc(Exp exp,
                            Calc[] calcs)
Creates an AbstractTupleCalc.

Parameters:
exp - Source expression
calcs - Child compiled expressions
Method Detail

evaluate

public java.lang.Object evaluate(Evaluator evaluator)
Description copied from interface: Calc
Evaluates this expression.

Specified by:
evaluate in interface Calc
Parameters:
evaluator - Provides dimensional context in which to evaluate this expression
Returns:
Result of expression evaluation

Get Mondrian at SourceForge.net. Fast, secure and free Open Source software downloads