|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.hadoop.mapred.lib.db.DBOutputFormat.DBRecordWriter
protected class DBOutputFormat.DBRecordWriter
A RecordWriter that writes the reduce output to a SQL table
| Constructor Summary | |
|---|---|
protected |
DBOutputFormat.DBRecordWriter(java.sql.Connection connection,
java.sql.PreparedStatement statement)
|
| Method Summary | |
|---|---|
void |
close(Reporter reporter)
Close this RecordWriter to future operations. |
void |
write(K key,
V value)
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 |
|---|
protected DBOutputFormat.DBRecordWriter(java.sql.Connection connection,
java.sql.PreparedStatement statement)
throws java.sql.SQLException
java.sql.SQLException| Method Detail |
|---|
public void close(Reporter reporter)
throws java.io.IOException
RecordWriter to future operations.
close in interface RecordWriter<K extends DBWritable,V>reporter - facility to report progress.
java.io.IOException
public void write(K key,
V value)
throws java.io.IOException
write in interface RecordWriter<K extends DBWritable,V>key - the key to write.value - the value to write.
java.io.IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||