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
Modifier and TypeFieldDescriptionprivate Connection
private BufferedMutator
(package private) boolean
-
Constructor Summary
-
Method Summary
-
Field Details
-
connection
-
mutator
-
useWriteAheadLogging
boolean useWriteAheadLogging
-
-
Constructor Details
-
TableRecordWriter
- Throws:
IOException
-
-
Method Details
-
close
Closes the writer, in this case flush table commits.- Specified by:
close
in 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:
write
in 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)
-