org.apache.pig.backend.hadoop.executionengine.mapReduceLayer
Class PigOutputFormat
java.lang.Object
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.
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 |
PIG_OUTPUT_FUNC
public static final String PIG_OUTPUT_FUNC
- See Also:
- Constant Field Values
PigOutputFormat
public PigOutputFormat()
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