public class TableMutationRecordWriter
extends org.apache.hadoop.mapreduce.RecordWriter<org.ojai.Value,org.ojai.store.DocumentMutation>
| 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(org.ojai.Value key,
org.ojai.store.DocumentMutation value)
Updates a row given by the key in the table with DocumentMutation.
|
public void write(org.ojai.Value key,
org.ojai.store.DocumentMutation value)
throws java.io.IOException,
java.lang.InterruptedException
write in class org.apache.hadoop.mapreduce.RecordWriter<org.ojai.Value,org.ojai.store.DocumentMutation>key - The key.value - DocumentMutation to be used for update.java.io.IOException - When writing fails.java.lang.InterruptedExceptionRecordWriter.write(java.lang.Object, java.lang.Object)public void close(org.apache.hadoop.mapreduce.TaskAttemptContext context)
throws java.io.IOException,
java.lang.InterruptedException
close in class org.apache.hadoop.mapreduce.RecordWriter<org.ojai.Value,org.ojai.store.DocumentMutation>context - The context.java.io.IOException - When closing the writer fails.java.lang.InterruptedExceptionRecordWriter.close(org.apache.hadoop.mapreduce.TaskAttemptContext)