|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.hadoop.mapreduce.RecordWriter<KEY,Mutation>
org.apache.hadoop.hbase.mapreduce.TableOutputFormat.TableRecordWriter<KEY>
KEY - The type of the key.protected static class TableOutputFormat.TableRecordWriter<KEY>
Writes the reducer output to an HBase table.
| Constructor Summary | |
|---|---|
TableOutputFormat.TableRecordWriter(HTable table)
Instantiate a TableRecordWriter with the HBase HClient for writing. |
|
| Method Summary | |
|---|---|
void |
close(org.apache.hadoop.mapreduce.TaskAttemptContext context)
Closes the writer, in this case flush table commits. |
void |
write(KEY key,
Mutation value)
Writes a key/value pair into the table. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TableOutputFormat.TableRecordWriter(HTable table)
table - The table to write to.| Method Detail |
|---|
public void close(org.apache.hadoop.mapreduce.TaskAttemptContext context)
throws IOException
close in class org.apache.hadoop.mapreduce.RecordWriter<KEY,Mutation>context - The context.
IOException - When closing the writer fails.RecordWriter.close(org.apache.hadoop.mapreduce.TaskAttemptContext)
public void write(KEY key,
Mutation value)
throws IOException
write in class org.apache.hadoop.mapreduce.RecordWriter<KEY,Mutation>key - The key.value - The value.
IOException - When writing fails.RecordWriter.write(java.lang.Object, java.lang.Object)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||