|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.hadoop.mapred.OutputFormatBase<K,V>
FileOutputFormat
@Deprecated public abstract class OutputFormatBase<K,V>
A base class for OutputFormat
.
Constructor Summary | |
---|---|
OutputFormatBase()
Deprecated. |
Method Summary | |
---|---|
void |
checkOutputSpecs(FileSystem ignored,
JobConf job)
Deprecated. Check for validity of the output-specification for the job. |
static boolean |
getCompressOutput(JobConf conf)
Deprecated. Is the job output compressed? |
static Class<? extends CompressionCodec> |
getOutputCompressorClass(JobConf conf,
Class<? extends CompressionCodec> defaultValue)
Deprecated. Get the CompressionCodec for compressing the job outputs. |
abstract RecordWriter<K,V> |
getRecordWriter(FileSystem ignored,
JobConf job,
String name,
Progressable progress)
Deprecated. Get the RecordWriter for the given job. |
static void |
setCompressOutput(JobConf conf,
boolean compress)
Deprecated. Set whether the output of the job is compressed. |
static void |
setOutputCompressorClass(JobConf conf,
Class<? extends CompressionCodec> codecClass)
Deprecated. Set the CompressionCodec to be used to compress job outputs. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public OutputFormatBase()
Method Detail |
---|
public static void setCompressOutput(JobConf conf, boolean compress)
conf
- the JobConf
to modifycompress
- should the output of the job be compressed?public static boolean getCompressOutput(JobConf conf)
conf
- the JobConf
to look in
true
if the job output should be compressed,
false
otherwisepublic static void setOutputCompressorClass(JobConf conf, Class<? extends CompressionCodec> codecClass)
CompressionCodec
to be used to compress job outputs.
conf
- the JobConf
to modifycodecClass
- the CompressionCodec
to be used to
compress the job outputspublic static Class<? extends CompressionCodec> getOutputCompressorClass(JobConf conf, Class<? extends CompressionCodec> defaultValue)
CompressionCodec
for compressing the job outputs.
conf
- the JobConf
to look indefaultValue
- the CompressionCodec
to return if not set
CompressionCodec
to be used to compress the
job outputs
IllegalArgumentException
- if the class was specified, but not foundpublic abstract RecordWriter<K,V> getRecordWriter(FileSystem ignored, JobConf job, String name, Progressable progress) throws IOException
OutputFormat
RecordWriter
for the given job.
getRecordWriter
in interface OutputFormat<K,V>
job
- configuration for the job whose output is being written.name
- the unique name for this part of the output.progress
- mechanism for reporting progress while writing to file.
RecordWriter
to write the output for the job.
IOException
public void checkOutputSpecs(FileSystem ignored, JobConf job) throws FileAlreadyExistsException, InvalidJobConfException, IOException
OutputFormat
This is to validate the output specification for the job when it is a job is submitted. Typically checks that it does not already exist, throwing an exception when it already exists, so that output is not overwritten.
checkOutputSpecs
in interface OutputFormat<K,V>
job
- job configuration.
IOException
- when output should not be attempted
FileAlreadyExistsException
InvalidJobConfException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |