org.apache.pig.backend.hadoop.executionengine.mapreduceExec
Class PigOutputFormat.PigRecordWriter

java.lang.Object
  extended by org.apache.pig.backend.hadoop.executionengine.mapreduceExec.PigOutputFormat.PigRecordWriter
All Implemented Interfaces:
org.apache.hadoop.mapred.RecordWriter<org.apache.hadoop.io.WritableComparable,Tuple>
Enclosing class:
PigOutputFormat

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


Constructor Summary
PigOutputFormat.PigRecordWriter(org.apache.hadoop.fs.FileSystem fs, org.apache.hadoop.fs.Path file, StoreFunc sfunc)
           
 
Method Summary
 void close(org.apache.hadoop.mapred.Reporter reporter)
           
 void write(org.apache.hadoop.io.WritableComparable key, Tuple value)
          We only care about the values, so we are going to skip the keys when we write.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PigOutputFormat.PigRecordWriter

public PigOutputFormat.PigRecordWriter(org.apache.hadoop.fs.FileSystem fs,
                                       org.apache.hadoop.fs.Path file,
                                       StoreFunc sfunc)
                                throws IOException
Throws:
IOException
Method Detail

write

public void write(org.apache.hadoop.io.WritableComparable key,
                  Tuple value)
           throws IOException
We only care about the values, so we are going to skip the keys when we write.

Specified by:
write in interface org.apache.hadoop.mapred.RecordWriter<org.apache.hadoop.io.WritableComparable,Tuple>
Throws:
IOException
See Also:
org.apache.hadoop.mapred.RecordWriter#write(org.apache.hadoop.io.WritableComparable, org.apache.hadoop.io.Writable)

close

public void close(org.apache.hadoop.mapred.Reporter reporter)
           throws IOException
Specified by:
close in interface org.apache.hadoop.mapred.RecordWriter<org.apache.hadoop.io.WritableComparable,Tuple>
Throws:
IOException


Copyright © ${year} The Apache Software Foundation