@InterfaceStability.Evolving @InterfaceAudience.Public public abstract class OutputCommitter extends Object
| Constructor and Description | 
|---|
OutputCommitter(OutputCommitterContext committerContext)
Constructor an instance of the OutputCommitter. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
abstract void | 
abortOutput(org.apache.tez.dag.api.client.VertexStatus.State finalState)
For aborting an output. 
 | 
abstract void | 
commitOutput()
For committing the output after successful completion of tasks that write
 the output. 
 | 
OutputCommitterContext | 
getContext()
Return ahe  
OutputCommitterContext for this specific instance of
 the Committer. | 
abstract void | 
initialize()
Setup up the Output committer. 
 | 
boolean | 
isTaskRecoverySupported()
Whether the OutputCommitter supports recovery of output from a Task
 that completed in a previous DAG attempt 
 | 
void | 
recoverTask(int taskIndex,
           int previousDAGAttempt)
Recover task output from a previous DAG attempt 
 | 
abstract void | 
setupOutput()
For the framework to setup the output during initialization. 
 | 
public OutputCommitter(OutputCommitterContext committerContext)
committerContext - committer context which can be used to access the payload, vertex
                         properties, etcpublic abstract void initialize()
                         throws Exception
Exceptionpublic abstract void setupOutput()
                          throws Exception
Exception - if setup failspublic abstract void commitOutput()
                           throws Exception
Exceptionpublic abstract void abortOutput(org.apache.tez.dag.api.client.VertexStatus.State finalState)
                          throws Exception
finalState - final run-state of the vertexExceptionpublic boolean isTaskRecoverySupported()
public void recoverTask(int taskIndex,
               int previousDAGAttempt)
                 throws Exception
taskIndex - Index of task to be recoveredpreviousDAGAttempt - Previous DAG Attempt NumberExceptionpublic final OutputCommitterContext getContext()
OutputCommitterContext for this specific instance of
 the Committer.OutputCommitterContext for the inputCopyright © 2014 Apache Software Foundation. All rights reserved.