Class FunctionLib


  • public class FunctionLib
    extends Object
    • Constructor Detail

      • FunctionLib

        public FunctionLib​(String filename)
                    throws org.pentaho.di.core.exception.KettleXMLException
        Throws:
        org.pentaho.di.core.exception.KettleXMLException
    • Method Detail

      • setFunctions

        public void setFunctions​(List<FunctionDescription> functions)
        Parameters:
        functions - the functions to set
      • getFunctionNames

        public String[] getFunctionNames()
        Returns:
        A sorted array of function names, extracted from the function descriptions...
      • getFunctionCategories

        public String[] getFunctionCategories()
        Returns:
        A sorted array of unique categories, extracted from the function descriptions...
      • getFunctionsForACategory

        public String[] getFunctionsForACategory​(String category)
        Get all the function names for a certain category
        Parameters:
        category - the category name to look for
        Returns:
        the sorted array of function names for the specified category
      • getFunctionDescription

        public FunctionDescription getFunctionDescription​(String functionName)
        Parameters:
        functionName - the name of the function to look for
        Returns:
        the corresponding function description or null if nothing was found.