org.apache.hadoop.vertica
Class VerticaStreamingRecordWriter

java.lang.Object
  extended by org.apache.hadoop.mapreduce.RecordWriter<org.apache.hadoop.io.Text,org.apache.hadoop.io.Text>
      extended by org.apache.hadoop.vertica.VerticaStreamingRecordWriter

public class VerticaStreamingRecordWriter
extends RecordWriter<org.apache.hadoop.io.Text,org.apache.hadoop.io.Text>


Constructor Summary
VerticaStreamingRecordWriter(Connection connection, String copyStmt, String writerTable)
           
 
Method Summary
 void close(TaskAttemptContext context)
          Close this RecordWriter to future operations.
 void write(org.apache.hadoop.io.Text table, org.apache.hadoop.io.Text record)
          Writes a key/value pair.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

VerticaStreamingRecordWriter

public VerticaStreamingRecordWriter(Connection connection,
                                    String copyStmt,
                                    String writerTable)
Method Detail

close

public void close(TaskAttemptContext context)
           throws IOException
Description copied from class: RecordWriter
Close this RecordWriter to future operations.

Specified by:
close in class RecordWriter<org.apache.hadoop.io.Text,org.apache.hadoop.io.Text>
Parameters:
context - the context of the task
Throws:
IOException

write

public void write(org.apache.hadoop.io.Text table,
                  org.apache.hadoop.io.Text record)
           throws IOException
Description copied from class: RecordWriter
Writes a key/value pair.

Specified by:
write in class RecordWriter<org.apache.hadoop.io.Text,org.apache.hadoop.io.Text>
Parameters:
table - the key to write.
record - the value to write.
Throws:
IOException


Copyright © 2009 The Apache Software Foundation