public class DataSinkTask<IT> extends AbstractInvokable
OutputFormat| Constructor and Description |
|---|
DataSinkTask() |
| 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.
|
getCurrentNumberOfSubtasks, getEnvironment, getIndexInSubtaskGroup, getJobConfiguration, getTaskConfiguration, getUserCodeClassLoader, setEnvironmentpublic void registerInputOutput()
AbstractInvokableregisterInputOutput in class AbstractInvokablepublic void invoke()
throws Exception
AbstractInvokableinvoke in class AbstractInvokableException - thrown if any exception occurs during the execution of the taskspublic void cancel()
throws Exception
AbstractInvokablecancel in class AbstractInvokableException - thrown if any exception occurs during the execution of the user codeCopyright © 2015 The Apache Software Foundation. All rights reserved.