protected static class MultiTableOutputFormat.MultiTableRecordWriter extends org.apache.hadoop.mapreduce.RecordWriter<ImmutableBytesWritable,Mutation>
| Constructor and Description |
|---|
MultiTableRecordWriter(org.apache.hadoop.conf.Configuration conf,
boolean useWriteAheadLogging)
HBaseConfiguration to used whether to use write ahead logging.
|
| 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 MultiTableRecordWriter(org.apache.hadoop.conf.Configuration conf,
boolean useWriteAheadLogging)
throws IOException
IOExceptionpublic 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>IOExceptionCopyright © 2007–2020 The Apache Software Foundation. All rights reserved.