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 an instance of BuiltinFunTable.

Version:
$Id: //open/mondrian/src/main/mondrian/olap/fun/CustomizedFunctionTable.java#4 $
Author:
Rushan Chen

Nested Class Summary
 
Nested classes/interfaces inherited from interface mondrian.olap.FunTable
FunTable.Builder
 
Field Summary
(package private)  java.util.Set<FunDef> specialFunctions
           
(package private)  java.util.Set<java.lang.String> supportedBuiltinFunctions
           
 
Constructor Summary
CustomizedFunctionTable(java.util.Set<java.lang.String> builtinFunctions)
           
CustomizedFunctionTable(java.util.Set<java.lang.String> builtinFunctions, java.util.Set<FunDef> specialFunctions)
           
 
Method Summary
 void defineFunctions(FunTable.Builder builder)
          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
getFunInfoList, getReservedWords, getResolvers, getResolvers, init, isProperty, isReserved
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

supportedBuiltinFunctions

java.util.Set<java.lang.String> supportedBuiltinFunctions

specialFunctions

java.util.Set<FunDef> specialFunctions
Constructor Detail

CustomizedFunctionTable

public CustomizedFunctionTable(java.util.Set<java.lang.String> builtinFunctions)

CustomizedFunctionTable

public CustomizedFunctionTable(java.util.Set<java.lang.String> builtinFunctions,
                               java.util.Set<FunDef> specialFunctions)
Method Detail

defineFunctions

public void defineFunctions(FunTable.Builder builder)
Description copied from interface: FunTable
This method is called from the constructor, to define the set of functions and reserved words recognized.

The implementing class calls FunTable.Builder methods to declare functions and reserved words.

Derived class can override this method to add more functions. It must call the base method.

Parameters:
builder - Builder

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