public class CopyCommitter extends FileOutputCommitter
SUCCEEDED_FILE_NAME, TEMP_DIR_NAME
构造器和说明 |
---|
CopyCommitter(Path outputPath,
TaskAttemptContext context)
Create a output committer
|
限定符和类型 | 方法和说明 |
---|---|
void |
abortJob(JobContext jobContext,
JobStatus.State state)
Delete the temporary directory, including all of the work directories.
|
void |
commitJob(JobContext jobContext)
Delete the temporary directory, including all of the work directories.
|
abortTask, cleanupJob, commitTask, getWorkPath, needsTaskCommit, setupJob, setupTask
public CopyCommitter(Path outputPath, TaskAttemptContext context) throws IOException
outputPath
- the job's output pathcontext
- the task's contextIOException
- - Exception if anypublic void commitJob(JobContext jobContext) throws IOException
FileOutputCommitter
commitJob
在类中 FileOutputCommitter
jobContext
- the job's context.IOException
public void abortJob(JobContext jobContext, JobStatus.State state) throws IOException
FileOutputCommitter
abortJob
在类中 FileOutputCommitter
jobContext
- the job's contextstate
- final run state of the job, should be FAILED or KILLEDIOException
Copyright © 2009 The Apache Software Foundation