public class DataSourceTask<OT> extends AbstractInvokable
InputFormat to create records from the input.InputFormat| Constructor and Description |
|---|
DataSourceTask() |
| Modifier and Type | Method and Description |
|---|---|
void |
cancel()
This method is called when a task is canceled either as a result of a user abort or an execution failure.
|
void |
invoke()
Must be overwritten by the concrete task.
|
void |
registerInputOutput()
Must be overwritten by the concrete task to instantiate the required record reader and record writer.
|
void |
setUserCodeClassLoader(ClassLoader cl)
Sets the class-loader to be used to load the user code.
|
getCurrentNumberOfSubtasks, getEnvironment, getIndexInSubtaskGroup, getJobConfiguration, getTaskConfiguration, setEnvironment, userThreadFinished, userThreadStartedpublic void registerInputOutput()
AbstractInvokableregisterInputOutput in class AbstractInvokablepublic void invoke()
throws Exception
AbstractInvokableinvoke in class AbstractInvokableExceptionpublic void cancel()
throws Exception
AbstractInvokablecancel in class AbstractInvokableException - thrown if any exception occurs during the execution of the user codepublic void setUserCodeClassLoader(ClassLoader cl)
cl - The class-loader to be used to load the user code.Copyright © 2014 The Apache Software Foundation. All rights reserved.