org.apache.hadoop.vertica
Class VerticaRecordWriter

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

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


Constructor Summary
VerticaRecordWriter(Connection connection, String copyStmt, String writerTable, String delimiter, String terminator)
           
 
Method Summary
 void close(TaskAttemptContext context)
          Close this RecordWriter to future operations.
 VerticaRecord getValue()
           
 void write(org.apache.hadoop.io.Text table, VerticaRecord 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

VerticaRecordWriter

public VerticaRecordWriter(Connection connection,
                           String copyStmt,
                           String writerTable,
                           String delimiter,
                           String terminator)
Method Detail

getValue

public VerticaRecord getValue()
                       throws SQLException
Throws:
SQLException

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,VerticaRecord>
Parameters:
context - the context of the task
Throws:
IOException

write

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

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


Copyright © 2009 The Apache Software Foundation