Package mondrian.olap

Interface FunTable

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Interface Description
      static interface  FunTable.Builder
      Builder that assists with the construction of a function table by providing callbacks to define functions.
    • Method Detail

      • isReserved

        boolean isReserved​(java.lang.String s)
        Returns whether a string is a reserved word.
      • isProperty

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

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

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

        java.util.List<Resolver> getResolvers​(java.lang.String name,
                                              Syntax syntax)
        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 name
        syntax - Operator syntax
        Returns:
        List of resolvers for the operator
      • getFunInfoList

        java.util.List<FunInfo> getFunInfoList()
        Returns a list of FunInfo objects.
      • defineFunctions

        void defineFunctions​(FunTable.Builder builder)
        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