mondrian.olap
Interface FunTable

All Known Implementing Classes:
BuiltinFunTable, CustomizedFunctionTable, FunTableImpl, GlobalFunTable, RolapSchema.RolapSchemaFunctionTable

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).

 

Method Summary
 FunDef getDef(Exp[] args, Validator validator, String funName, Syntax syntax)
          Resolves a function call to a particular function.
 List<FunInfo> getFunInfoList()
          Returns a list of FunInfo objects.
 List<String> getReservedWords()
          Returns a list of words (String) which may not be used as identifiers.
 List<Resolver> getResolvers()
          Returns a list of Resolver objects.
 boolean isProperty(String s)
          Returns whether a string is a property-style (postfix) operator.
 boolean isReserved(String s)
          Returns whether a string is a reserved word.
 boolean requiresExpression(UnresolvedFunCall funCall, int k, Validator validator)
          Returns whether the kth argument to a function call has to be an expression.
 

Method Detail

getDef

FunDef getDef(Exp[] args,
              Validator validator,
              String funName,
              Syntax syntax)
Resolves a function call to a particular function. If the function is overloaded, returns as precise a match to the argument types as possible.


isReserved

boolean isReserved(String s)
Returns whether a string is a reserved word.


isProperty

boolean isProperty(String s)
Returns whether a string is a property-style (postfix) operator. This is used during parsing to disambiguate functions from unquoted member names.


requiresExpression

boolean requiresExpression(UnresolvedFunCall funCall,
                           int k,
                           Validator validator)
Returns whether the kth argument to a function call has to be an expression.


getReservedWords

List<String> getReservedWords()
Returns a list of words (String) which may not be used as identifiers.


getResolvers

List<Resolver> getResolvers()
Returns a list of Resolver objects.


getFunInfoList

List<FunInfo> getFunInfoList()
Returns a list of FunInfo objects.


SourceForge.net_Logo