protected static class MultiTableOutputFormat.MultiTableRecordWriter extends org.apache.hadoop.mapreduce.RecordWriter<ImmutableBytesWritable,Mutation>
| Constructor and Description |
|---|
MultiTableOutputFormat.MultiTableRecordWriter(org.apache.hadoop.conf.Configuration conf,
boolean useWriteAheadLogging) |
| Modifier and Type | Method and Description |
|---|---|
void |
close(org.apache.hadoop.mapreduce.TaskAttemptContext context) |
void |
write(ImmutableBytesWritable tableName,
Mutation action)
Writes an action (Put or Delete) to the specified table.
|
public MultiTableOutputFormat.MultiTableRecordWriter(org.apache.hadoop.conf.Configuration conf,
boolean useWriteAheadLogging)
conf - HBaseConfiguration to useduseWriteAheadLogging - whether to use write ahead logging. This can be turned off (
false) to improve performance when bulk loading data.public void close(org.apache.hadoop.mapreduce.TaskAttemptContext context)
throws IOException
close in class org.apache.hadoop.mapreduce.RecordWriter<ImmutableBytesWritable,Mutation>IOExceptionpublic void write(ImmutableBytesWritable tableName, Mutation action) throws IOException
write in class org.apache.hadoop.mapreduce.RecordWriter<ImmutableBytesWritable,Mutation>tableName - the table being updated.action - the update, either a put or a delete.IllegalArgumentException - if the action is not a put or a delete.IOExceptionCopyright © 2014 The Apache Software Foundation. All rights reserved.