public class PigOutputFormat extends org.apache.hadoop.mapreduce.OutputFormat<org.apache.hadoop.io.WritableComparable,Tuple>
| Modifier and Type | Class and Description | 
|---|---|
| static class  | PigOutputFormat.PigRecordWriterWrapper class which will delegate calls to the actual RecordWriter - this
 should only get called in the single store case. | 
| Modifier and Type | Field and Description | 
|---|---|
| protected org.apache.hadoop.conf.Configuration | currentConf | 
| protected List<POStore> | mapStores | 
| static String | PIG_MAPRED_OUTPUT_DIRthe temporary directory for the multi store | 
| static String | PIG_TMP_PATHthe relative path that can be used to build a temporary
 place to store the output from a number of map-reduce tasks | 
| protected List<POStore> | reduceStores | 
| Constructor and Description | 
|---|
| PigOutputFormat() | 
| Modifier and Type | Method and Description | 
|---|---|
| void | checkOutputSpecs(org.apache.hadoop.mapreduce.JobContext jobcontext) | 
| org.apache.hadoop.mapreduce.OutputCommitter | getOutputCommitter(org.apache.hadoop.mapreduce.TaskAttemptContext taskattemptcontext) | 
| org.apache.hadoop.mapreduce.RecordWriter<org.apache.hadoop.io.WritableComparable,Tuple> | getRecordWriter(org.apache.hadoop.mapreduce.TaskAttemptContext taskattemptcontext) | 
| static void | setLocation(org.apache.hadoop.mapreduce.JobContext jobContext,
           POStore store)Before delegating calls to underlying OutputFormat or OutputCommitter
 Pig needs to ensure the Configuration in the JobContext contains
 the output location and StoreFunc
 for the specific store - so set these up in the context for this specific
 store | 
| protected void | setupUdfEnvAndStores(org.apache.hadoop.mapreduce.JobContext jobcontext) | 
public static final String PIG_MAPRED_OUTPUT_DIR
public static final String PIG_TMP_PATH
protected org.apache.hadoop.conf.Configuration currentConf
public org.apache.hadoop.mapreduce.RecordWriter<org.apache.hadoop.io.WritableComparable,Tuple> getRecordWriter(org.apache.hadoop.mapreduce.TaskAttemptContext taskattemptcontext) throws IOException, InterruptedException
getRecordWriter in class org.apache.hadoop.mapreduce.OutputFormat<org.apache.hadoop.io.WritableComparable,Tuple>IOExceptionInterruptedExceptionpublic static void setLocation(org.apache.hadoop.mapreduce.JobContext jobContext,
               POStore store)
                        throws IOException
jobContext - the JobContextstore - the POStoreIOException - on failurepublic void checkOutputSpecs(org.apache.hadoop.mapreduce.JobContext jobcontext)
                      throws IOException,
                             InterruptedException
checkOutputSpecs in class org.apache.hadoop.mapreduce.OutputFormat<org.apache.hadoop.io.WritableComparable,Tuple>IOExceptionInterruptedExceptionprotected void setupUdfEnvAndStores(org.apache.hadoop.mapreduce.JobContext jobcontext)
                             throws IOException
IOExceptionpublic org.apache.hadoop.mapreduce.OutputCommitter getOutputCommitter(org.apache.hadoop.mapreduce.TaskAttemptContext taskattemptcontext)
                                                               throws IOException,
                                                                      InterruptedException
getOutputCommitter in class org.apache.hadoop.mapreduce.OutputFormat<org.apache.hadoop.io.WritableComparable,Tuple>IOExceptionInterruptedExceptionCopyright © 2007-2012 The Apache Software Foundation