public class JSONFileOutputRecordWriter
extends org.apache.hadoop.mapreduce.RecordWriter<org.apache.hadoop.io.LongWritable,org.ojai.Document>
| Constructor and Description |
|---|
JSONFileOutputRecordWriter(OutputStream fileOut) |
| Modifier and Type | Method and Description |
|---|---|
void |
close(org.apache.hadoop.mapreduce.TaskAttemptContext arg0) |
void |
write(org.apache.hadoop.io.LongWritable arg0,
org.ojai.Document document) |
public JSONFileOutputRecordWriter(OutputStream fileOut)
public void close(org.apache.hadoop.mapreduce.TaskAttemptContext arg0)
throws IOException,
InterruptedException
close in class org.apache.hadoop.mapreduce.RecordWriter<org.apache.hadoop.io.LongWritable,org.ojai.Document>IOExceptionInterruptedExceptionpublic void write(org.apache.hadoop.io.LongWritable arg0,
org.ojai.Document document)
throws IOException,
InterruptedException
write in class org.apache.hadoop.mapreduce.RecordWriter<org.apache.hadoop.io.LongWritable,org.ojai.Document>IOExceptionInterruptedExceptionCopyright © 2015–2017 MapR Technologies, Inc.. All rights reserved.