Java org.apache.hadoop.mapreduce.lib.output FileOutputFormat fields, constructors, methods, implement or subclass

Example usage for Java org.apache.hadoop.mapreduce.lib.output FileOutputFormat fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for org.apache.hadoop.mapreduce.lib.output FileOutputFormat.

The text is from its open source code.

Subclass

org.apache.hadoop.mapreduce.lib.output.FileOutputFormat has subclasses.
Click this link to see all its subclasses.

Field

StringCOMPRESS
Configuration option: should output be compressed?
StringCOMPRESS_CODEC
If compression is enabled, name of codec: .
StringCOMPRESS_TYPE
Type of compression : NONE, RECORD, BLOCK.
StringOUTDIR
Destination directory of work: .

Method

booleangetCompressOutput(JobContext job)
Is the job output compressed?
OutputCommittergetOutputCommitter(TaskAttemptContext context)
ClassgetOutputCompressorClass(JobContext job, Class defaultValue)
Get the CompressionCodec for compressing the job outputs.
StringgetOutputName(JobContext job)
Get the base output name for the output file.
PathgetOutputPath(JobContext job)
Get the Path to the output directory for the map-reduce job.
PathgetPathForWorkFile(TaskInputOutputContext context, String name, String extension)
Helper function to generate a Path for a file that is unique for the task within the job output directory.
RecordWritergetRecordWriter(TaskAttemptContext job)
StringgetUniqueFile(TaskAttemptContext context, String name, String extension)
Generate a unique filename, based on the task id, name, and extension
PathgetWorkOutputPath(TaskInputOutputContext context)
Get the Path to the task's temporary output directory for the map-reduce job Tasks' Side-Effect Files

Some applications need to create/write-to side-files, which differ from the actual job-outputs.

voidsetCompressOutput(Job job, boolean compress)
Set whether the output of the job is compressed.
voidsetOutputCompressorClass(Job job, Class codecClass)
Set the CompressionCodec to be used to compress job outputs.
voidsetOutputName(JobContext job, String name)
Set the base output name for output file to be created.
voidsetOutputPath(Job job, Path outputDir)
Set the Path of the output directory for the map-reduce job.