Class TableFunction


  • public class TableFunction
    extends Object
    Looks up table functions by funcName and returns tableFunction object which can be used in DataFrame.join and Session.tableFunction methods.

    It can reference both system-defined table function and user-defined table functions.

    Since:
    1.2.0
    • Constructor Detail

      • TableFunction

        public TableFunction​(String funcName)
        Create a new table function reference.
        Parameters:
        funcName - A string function name.
        Since:
        1.2.0
    • Method Detail

      • funcName

        public String funcName()
        Returns the function name.
        Returns:
        A string function name.
        Since:
        1.4.0
      • call

        public Column call​(Column... args)
        Create a Column reference by passing arguments in the TableFunction object.
        Parameters:
        args - A list of Column objects representing the arguments of the given table function
        Returns:
        A Column reference
        Since:
        1.10.0
      • call

        public Column call​(Map<String,​Column> args)
        Create a Column reference by passing arguments in the TableFunction object.
        Parameters:
        args - function arguments map of the given table function. Some functions, like flatten, have named parameters. use this map to assign values to the corresponding parameters.
        Returns:
        A Column reference
        Since:
        1.10.0