Package mondrian.olap
Interface FunTable
- All Known Implementing Classes:
BuiltinFunTable,CustomizedFunctionTable,FunTableImpl,GlobalFunTable
public interface FunTable
List of all MDX functions.
A function table can resolve a function call, using a particular
Syntax and set of arguments, to a
function definition (FunDef).
- Author:
- jhyde, 3 March, 2002
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfaceBuilder that assists with the construction of a function table by providing callbacks to define functions. -
Method Summary
Modifier and TypeMethodDescriptionvoiddefineFunctions(FunTable.Builder builder) This method is called from the constructor, to define the set of functions and reserved words recognized.Returns a list ofFunInfoobjects.Returns a list of words (String) which may not be used as identifiers.Returns a list ofResolverobjects.getResolvers(String name, Syntax syntax) Returns a list of resolvers for an operator with a given name and syntax.booleanisProperty(String s) Returns whether a string is a property-style (postfix) operator.booleanisReserved(String s) Returns whether a string is a reserved word.
-
Method Details
-
isReserved
Returns whether a string is a reserved word. -
isProperty
Returns whether a string is a property-style (postfix) operator. This is used during parsing to disambiguate functions from unquoted member names. -
getReservedWords
Returns a list of words (String) which may not be used as identifiers. -
getResolvers
Returns a list ofResolverobjects. -
getResolvers
Returns a list of resolvers for an operator with a given name and syntax. Never returns null; if there are no resolvers, returns the empty list.- Parameters:
name- Operator namesyntax- Operator syntax- Returns:
- List of resolvers for the operator
-
getFunInfoList
Returns a list ofFunInfoobjects. -
defineFunctions
This method is called from the constructor, to define the set of functions and reserved words recognized.The implementing class calls
FunTable.Buildermethods 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
-