mondrian.olap.fun
Class CustomizedFunctionTable

java.lang.Object
  extended by mondrian.olap.fun.FunTableImpl
      extended by mondrian.olap.fun.CustomizedFunctionTable
All Implemented Interfaces:
FunTable

public class CustomizedFunctionTable
extends FunTableImpl

Interface to build a customized function table, selecting functions from the set of supported functions in BuiltInFunTable instance.

Author:
Rushan Chen
 

Field Summary
(package private)  Set<FunDef> specialFunctions
           
(package private)  Set<String> supportedBuiltInFunctions
           
 
Fields inherited from class mondrian.olap.fun.FunTableImpl
funInfoList, mapNameToResolvers, resolverList
 
Constructor Summary
CustomizedFunctionTable(Set<String> buildInFunctions)
           
CustomizedFunctionTable(Set<String> buildInFunctions, Set<FunDef> specialFunctions)
           
 
Method Summary
protected  void defineFunctions()
          This method is called from the constructor, to define the set of functions and reserved words recognized.
 
Methods inherited from class mondrian.olap.fun.FunTableImpl
addFunInfo, define, define, defineProperty, defineReserved, getDef, getFunInfoList, getReservedWords, getResolvers, init, isProperty, isReserved, makeResolverKey, organizeFunctions, requiresExpression
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

supportedBuiltInFunctions

Set<String> supportedBuiltInFunctions

specialFunctions

Set<FunDef> specialFunctions
Constructor Detail

CustomizedFunctionTable

public CustomizedFunctionTable(Set<String> buildInFunctions)

CustomizedFunctionTable

public CustomizedFunctionTable(Set<String> buildInFunctions,
                               Set<FunDef> specialFunctions)
Method Detail

defineFunctions

protected void defineFunctions()
Description copied from class: FunTableImpl
This method is called from the constructor, to define the set of functions and reserved words recognized.

Each function is declared by calling FunTableImpl.define(mondrian.olap.FunDef). Each reserved word is declared by calling FunTableImpl.defineReserved(String).

Derived class can override this method to add more functions.

Specified by:
defineFunctions in class FunTableImpl

SourceForge.net_Logo