V
- The type of the input keysK
- The type of the input values
public class WrapperOutputFormat<V,K>
extends <any>
FileOutputFormat
. An OutputCommitter
can be assigned by wrapping it using a WrapperOutputCommitter
.Constructor and Description |
---|
WrapperOutputFormat() |
Modifier and Type | Method and Description |
---|---|
void |
checkOutputSpecs(JobContext context) |
Path |
getDefaultWorkFile(TaskAttemptContext context, java.lang.String extension) |
OutputCommitter |
getOutputCommitter(TaskAttemptContext context) |
<any> |
getOutputFormat(Configuration conf)
Gets an instance of the wrapped output format
|
static <K,V> java.lang.Class<? extends <any>> |
getOutputFormatClass(Configuration conf)
Gets the wrapped
OutputFormat class |
<any> |
getRecordWriter(TaskAttemptContext context) |
WrapperOutputCommitter |
getWrapperOutputCommitter(OutputCommitter intOutCom, JobContext context)
Gets an instance of the
WrapperOutputCommitter |
static java.lang.Class<? extends WrapperOutputCommitter> |
getWrapperOutputCommitterClass(Configuration conf)
Gets the
WrapperOutputCommitter that contains the final output committer |
static <K,V> void |
setOutputFormatClass(Configuration conf, java.lang.Class<? extends <any>> outputFormatClass)
Sets the
OutputFormat class to be wrapped |
static void |
setWrapperOutputCommitterClass(Configuration conf, java.lang.Class<? extends WrapperOutputCommitter> outComClass)
Sets the
WrapperOutputCommitter that contains the final output committer |
public void checkOutputSpecs(JobContext context) throws FileAlreadyExistsException, java.io.IOException
FileAlreadyExistsException
java.io.IOException
public Path getDefaultWorkFile(TaskAttemptContext context, java.lang.String extension) throws java.io.IOException
java.io.IOException
public OutputCommitter getOutputCommitter(TaskAttemptContext context) throws java.io.IOException
java.io.IOException
public <any> getOutputFormat(Configuration conf)
conf
-public static <K,V> java.lang.Class<? extends <any>> getOutputFormatClass(Configuration conf)
OutputFormat
classconf
-public <any> getRecordWriter(TaskAttemptContext context) throws java.io.IOException, java.lang.InterruptedException
java.io.IOException
java.lang.InterruptedException
public WrapperOutputCommitter getWrapperOutputCommitter(OutputCommitter intOutCom, JobContext context) throws java.lang.Exception
WrapperOutputCommitter
intOutCom
-context
-java.lang.Exception
public static java.lang.Class<? extends WrapperOutputCommitter> getWrapperOutputCommitterClass(Configuration conf)
WrapperOutputCommitter
that contains the final output committerconf
-public static <K,V> void setOutputFormatClass(Configuration conf, java.lang.Class<? extends <any>> outputFormatClass)
OutputFormat
class to be wrappedconf
-outputFormatClass
-public static void setWrapperOutputCommitterClass(Configuration conf, java.lang.Class<? extends WrapperOutputCommitter> outComClass)
WrapperOutputCommitter
that contains the final output committerconf
-outComClass
-Copyright © 2017, 2018 Oracle and/or its affiliates. All Rights Reserved.