public class BulkLoadRecordWriter extends org.apache.hadoop.mapreduce.RecordWriter<ByteBufWritableComparable,org.ojai.Document>
| Constructor and Description |
|---|
BulkLoadRecordWriter(org.apache.hadoop.conf.Configuration conf,
org.apache.hadoop.fs.Path tablePath) |
| Modifier and Type | Method and Description |
|---|---|
void |
close(org.apache.hadoop.mapreduce.TaskAttemptContext c) |
void |
write(ByteBufWritableComparable rowBuf,
org.ojai.Document record) |
void |
write(ByteBufWritableComparable rowBuf,
com.mapr.db.Mutation mutation) |
public BulkLoadRecordWriter(org.apache.hadoop.conf.Configuration conf,
org.apache.hadoop.fs.Path tablePath)
throws IOException,
com.mapr.db.exceptions.TableNotFoundException
IOExceptioncom.mapr.db.exceptions.TableNotFoundExceptionpublic void write(ByteBufWritableComparable rowBuf, com.mapr.db.Mutation mutation) throws IOException, InterruptedException
IOExceptionInterruptedExceptionpublic void write(ByteBufWritableComparable rowBuf, org.ojai.Document record) throws IOException, InterruptedException
write in class org.apache.hadoop.mapreduce.RecordWriter<ByteBufWritableComparable,org.ojai.Document>IOExceptionInterruptedExceptionpublic void close(org.apache.hadoop.mapreduce.TaskAttemptContext c)
throws IOException,
InterruptedException
close in class org.apache.hadoop.mapreduce.RecordWriter<ByteBufWritableComparable,org.ojai.Document>IOExceptionInterruptedExceptionCopyright © 2015 Mapr Technologies, Inc.. All rights reserved.