org.apache.pig.backend.hadoop.executionengine.mapReduceLayer
Class PigOutputFormat

java.lang.Object
  extended by org.apache.pig.backend.hadoop.executionengine.mapReduceLayer.PigOutputFormat
All Implemented Interfaces:
org.apache.hadoop.mapred.OutputFormat<org.apache.hadoop.io.WritableComparable,Tuple>

public class PigOutputFormat
extends Object
implements org.apache.hadoop.mapred.OutputFormat<org.apache.hadoop.io.WritableComparable,Tuple>

The better half of PigInputFormat which is responsible for the Store functionality. It is the exact mirror image of PigInputFormat having RecordWriter instead of a RecordReader.


Nested Class Summary
static class PigOutputFormat.PigRecordWriter
           
 
Field Summary
static String PIG_OUTPUT_FUNC
           
 
Constructor Summary
PigOutputFormat()
           
 
Method Summary
 void checkOutputSpecs(org.apache.hadoop.fs.FileSystem fs, org.apache.hadoop.mapred.JobConf job)
           
 PigOutputFormat.PigRecordWriter getRecordWriter(org.apache.hadoop.fs.FileSystem fs, org.apache.hadoop.mapred.JobConf job, org.apache.hadoop.fs.Path outputDir, String name, org.apache.hadoop.util.Progressable progress)
           
 org.apache.hadoop.mapred.RecordWriter<org.apache.hadoop.io.WritableComparable,Tuple> getRecordWriter(org.apache.hadoop.fs.FileSystem fs, org.apache.hadoop.mapred.JobConf job, String name, org.apache.hadoop.util.Progressable progress)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PIG_OUTPUT_FUNC

public static final String PIG_OUTPUT_FUNC
See Also:
Constant Field Values
Constructor Detail

PigOutputFormat

public PigOutputFormat()
Method Detail

getRecordWriter

public org.apache.hadoop.mapred.RecordWriter<org.apache.hadoop.io.WritableComparable,Tuple> getRecordWriter(org.apache.hadoop.fs.FileSystem fs,
                                                                                                            org.apache.hadoop.mapred.JobConf job,
                                                                                                            String name,
                                                                                                            org.apache.hadoop.util.Progressable progress)
                                                                                                     throws IOException
Specified by:
getRecordWriter in interface org.apache.hadoop.mapred.OutputFormat<org.apache.hadoop.io.WritableComparable,Tuple>
Throws:
IOException

getRecordWriter

public PigOutputFormat.PigRecordWriter getRecordWriter(org.apache.hadoop.fs.FileSystem fs,
                                                       org.apache.hadoop.mapred.JobConf job,
                                                       org.apache.hadoop.fs.Path outputDir,
                                                       String name,
                                                       org.apache.hadoop.util.Progressable progress)
                                                throws IOException
Throws:
IOException

checkOutputSpecs

public void checkOutputSpecs(org.apache.hadoop.fs.FileSystem fs,
                             org.apache.hadoop.mapred.JobConf job)
                      throws IOException
Specified by:
checkOutputSpecs in interface org.apache.hadoop.mapred.OutputFormat<org.apache.hadoop.io.WritableComparable,Tuple>
Throws:
IOException


Copyright © ${year} The Apache Software Foundation