Class FunctionRegistry


  • public class FunctionRegistry
    extends Object

    A registry of Java user-defined functions (Java UDFs).

    • Method Detail

      • getFunction

        public static Function getFunction​(String name)

        Gets a function for a name.

        First, if the name is registered with a singleton function instance, returns that instance. After that, if the name represents a Function class on the application classpath, loads it, and returns a newly created instance.

      • putFunction

        public static void putFunction​(Function function)

        Registers a function by its default name.

      • putFunction

        public static void putFunction​(String name,
                                       Function function)

        Registers a function by a name other than its default name.

      • putFunction

        public static void putFunction​(String name,
                                       Class<? extends Function> functionClazz)

        Registers a function class.

      • removeFunction

        public static void removeFunction​(String name)