public class TableMutationRecordWriter extends org.apache.hadoop.mapreduce.RecordWriter<ByteBufWritableComparable,com.mapr.db.Mutation>
| Constructor and Description |
|---|
TableMutationRecordWriter(com.mapr.db.Table t) |
| Modifier and Type | Method and Description |
|---|---|
void |
close(org.apache.hadoop.mapreduce.TaskAttemptContext context)
Closes the writer, in this case flush table commits.
|
void |
write(ByteBufWritableComparable key,
com.mapr.db.Mutation value)
Writes a key/value pair into the table.
|
public void write(ByteBufWritableComparable key, com.mapr.db.Mutation value) throws IOException, InterruptedException
write in class org.apache.hadoop.mapreduce.RecordWriter<ByteBufWritableComparable,com.mapr.db.Mutation>key - The key.value - The value.IOException - When writing fails.InterruptedExceptionRecordWriter.write(java.lang.Object, java.lang.Object)public void close(org.apache.hadoop.mapreduce.TaskAttemptContext context)
throws IOException,
InterruptedException
close in class org.apache.hadoop.mapreduce.RecordWriter<ByteBufWritableComparable,com.mapr.db.Mutation>context - The context.IOException - When closing the writer fails.InterruptedExceptionRecordWriter.close(org.apache.hadoop.mapreduce.TaskAttemptContext)Copyright © 2015 Mapr Technologies, Inc.. All rights reserved.