public class DataSinkTask<IT> extends AbstractInvokable
OutputFormat| Modifier and Type | Field and Description |
|---|---|
static String |
DEGREE_OF_PARALLELISM_KEY |
| 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.
|
void |
setUserCodeClassLoader(ClassLoader cl)
Sets the class-loader to be used to load the user code.
|
getCurrentNumberOfSubtasks, getEnvironment, getIndexInSubtaskGroup, getJobConfiguration, getTaskConfiguration, setEnvironment, userThreadFinished, userThreadStartedpublic static final String DEGREE_OF_PARALLELISM_KEY
public 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.