org.apache.hadoop.vertica
Class VerticaRecordWriter
java.lang.Object
org.apache.hadoop.mapreduce.RecordWriter<org.apache.hadoop.io.Text,VerticaRecord>
org.apache.hadoop.vertica.VerticaRecordWriter
public class VerticaRecordWriter
- extends RecordWriter<org.apache.hadoop.io.Text,VerticaRecord>
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
VerticaRecordWriter
public VerticaRecordWriter(Connection connection,
String copyStmt,
String writerTable,
String delimiter,
String terminator)
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