Package org.apache.drill.exec.expr.fn
Class FunctionInitializer
java.lang.Object
org.apache.drill.exec.expr.fn.FunctionInitializer
To avoid the cost of initializing all functions up front, this class contains
all information required to initializing a function when it is used.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescription
-
Constructor Details
-
FunctionInitializer
- Parameters:
className
- the fully qualified name of the class implementing the functionclassLoader
- class loader associated with the function, is unique for each jar that holds function to prevent classpath collisions during loading an unloading jars
-
-
Method Details
-
getClassLoader
- Returns:
- returns class loader
-
getClassName
- Returns:
- the fully qualified name of the class implementing the function
-
getImports
- Returns:
- the imports of this class (for java code gen)
-
getMethod
- Parameters:
methodName
- method name- Returns:
- the content of the method (for java code gen inlining)
-