public abstract class HadoopTask extends AbstractTask
| Modifier | Constructor and Description |
|---|---|
protected |
HadoopTask(String id,
String dataSource,
List<String> hadoopDependencyCoordinates) |
| Modifier and Type | Method and Description |
|---|---|
protected ClassLoader |
buildClassLoader(TaskToolbox toolbox) |
List<String> |
getHadoopDependencyCoordinates() |
static <InputType,OutputType> |
invokeForeignLoader(String clazzName,
InputType input,
ClassLoader loader)
This method tries to isolate class loading during a Function call
|
equals, getClasspathPrefix, getDataSource, getGroupId, getId, getNodeType, getQueryRunner, getTaskLocks, getTaskResource, hashCode, joinId, makeId, success, toStringprotected ClassLoader buildClassLoader(TaskToolbox toolbox) throws Exception
Exceptionpublic static <InputType,OutputType> OutputType invokeForeignLoader(String clazzName, InputType input, ClassLoader loader)
InputType - The input type of the method.OutputType - The output type of the method. The result of runTask must be castable to this type.clazzName - The Class which has a static method called `runTask`input - The input for `runTask`, must have `input.getClass()` be the class of the input for runTaskloader - The loader to use as the context class loader during invocationCopyright © 2011–2015. All rights reserved.