Class FunctionUtils
java.lang.Object
org.apache.pulsar.functions.utils.functions.FunctionUtils
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic StringgetFunctionClass(ClassLoader classLoader) Extract the Pulsar Function class from a function or archive.static FunctionDefinitiongetFunctionDefinition(NarClassLoader narClassLoader) static TreeMap<String,FunctionArchive> searchForFunctions(String functionsDirectory) static TreeMap<String,FunctionArchive> searchForFunctions(String functionsDirectory, boolean alwaysPopulatePath)
-
Constructor Details
-
FunctionUtils
public FunctionUtils()
-
-
Method Details
-
getFunctionClass
Extract the Pulsar Function class from a function or archive.- Throws:
IOException
-
getFunctionDefinition
public static FunctionDefinition getFunctionDefinition(NarClassLoader narClassLoader) throws IOException - Throws:
IOException
-
searchForFunctions
public static TreeMap<String,FunctionArchive> searchForFunctions(String functionsDirectory) throws IOException - Throws:
IOException
-
searchForFunctions
public static TreeMap<String,FunctionArchive> searchForFunctions(String functionsDirectory, boolean alwaysPopulatePath) throws IOException - Throws:
IOException
-