mondrian.rolap
Class RolapNativeRegistry

java.lang.Object
  extended by mondrian.rolap.RolapNative
      extended by mondrian.rolap.RolapNativeRegistry

public class RolapNativeRegistry
extends RolapNative

Composite of RolapNatives. Uses chain of responsibility to select the appropriate RolapNative evaluator.

 

Nested Class Summary
 
Nested classes/interfaces inherited from class mondrian.rolap.RolapNative
RolapNative.Listener, RolapNative.NativeEvent, RolapNative.TupleEvent
 
Field Summary
 
Fields inherited from class mondrian.rolap.RolapNative
listener
 
Constructor Summary
RolapNativeRegistry()
           
 
Method Summary
 NativeEvaluator createEvaluator(RolapEvaluator evaluator, FunDef fun, Exp[] args)
          Returns the matching NativeEvaluator or null if fun can not be executed in SQL for the given context and arguments.
 void register(String funName, RolapNative rn)
           
(package private)  void setListener(RolapNative.Listener listener)
          for testing
(package private)  void useHardCache(boolean hard)
          for testing
 
Methods inherited from class mondrian.rolap.RolapNative
getListener, isEnabled, setEnabled
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RolapNativeRegistry

public RolapNativeRegistry()
Method Detail

createEvaluator

public NativeEvaluator createEvaluator(RolapEvaluator evaluator,
                                       FunDef fun,
                                       Exp[] args)
Returns the matching NativeEvaluator or null if fun can not be executed in SQL for the given context and arguments.

Specified by:
createEvaluator in class RolapNative

register

public void register(String funName,
                     RolapNative rn)

setListener

void setListener(RolapNative.Listener listener)
for testing

Overrides:
setListener in class RolapNative

useHardCache

void useHardCache(boolean hard)
for testing

Specified by:
useHardCache in class RolapNative

SourceForge.net_Logo