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, setupTaskpublic 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
FileOutputCommittercommitJob 在类中 FileOutputCommitterjobContext - the job's context.IOExceptionpublic void abortJob(JobContext jobContext, JobStatus.State state) throws IOException
FileOutputCommitterabortJob 在类中 FileOutputCommitterjobContext - the job's contextstate - final run state of the job, should be FAILED or KILLEDIOExceptionCopyright © 2009 The Apache Software Foundation