org.apache.hadoop.hbase.util.DynamicClassLoader Java Examples
The following examples show how to use
org.apache.hadoop.hbase.util.DynamicClassLoader.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: UDFExpression.java From phoenix with Apache License 2.0 | 5 votes |
private void constructUDFFunction() { try { DynamicClassLoader classLoader = getClassLoader(this.tenantId, this.jarPath); Class<?> clazz = classLoader.loadClass(this.functionClassName); Constructor<?> constructor = clazz.getConstructor(List.class); udfFunction = (ScalarFunction)constructor.newInstance(this.children); } catch (ClassNotFoundException | NoSuchMethodException | SecurityException | InstantiationException | IllegalAccessException | IllegalArgumentException | InvocationTargetException e) { throw new RuntimeException(e); } }