KEY - The type of the key.protected static class TableOutputFormat.TableRecordWriter<KEY> extends org.apache.hadoop.mapreduce.RecordWriter<KEY,Mutation>
| Constructor and Description |
|---|
TableOutputFormat.TableRecordWriter(HTable table)
Instantiate a TableRecordWriter with the HBase HClient for writing.
|
public TableOutputFormat.TableRecordWriter(HTable table)
table - The table to write to.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)Copyright © 2014 The Apache Software Foundation. All rights reserved.