Class TableOutputFormat.TableRecordWriter
java.lang.Object
org.apache.hadoop.mapreduce.RecordWriter<KEY,Mutation>
org.apache.hadoop.hbase.mapreduce.TableOutputFormat.TableRecordWriter
- Enclosing class:
- TableOutputFormat<KEY>
protected class TableOutputFormat.TableRecordWriter
extends org.apache.hadoop.mapreduce.RecordWriter<KEY,Mutation>
Writes the reducer output to an HBase table.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
connection
-
mutator
-
-
Constructor Details
-
TableRecordWriter
- Throws:
IOException
-
-
Method Details
-
close
Closes the writer, in this case flush table commits.- Specified by:
closein classorg.apache.hadoop.mapreduce.RecordWriter<KEY,Mutation> - Parameters:
context- The context.- Throws:
IOException- When closing the writer fails.- See Also:
-
RecordWriter.close(TaskAttemptContext)
-
write
Writes a key/value pair into the table.- Specified by:
writein classorg.apache.hadoop.mapreduce.RecordWriter<KEY,Mutation> - Parameters:
key- The key.value- The value.- Throws:
IOException- When writing fails.- See Also:
-
RecordWriter.write(Object, Object)
-