Package org.apache.nutch.crawl
Class CrawlDbReader.CrawlDatumJsonOutputFormat.LineRecordWriter
- java.lang.Object
-
- org.apache.hadoop.mapreduce.RecordWriter<Text,CrawlDatum>
-
- org.apache.nutch.crawl.CrawlDbReader.CrawlDatumJsonOutputFormat.LineRecordWriter
-
- Enclosing class:
- CrawlDbReader.CrawlDatumJsonOutputFormat
protected static class CrawlDbReader.CrawlDatumJsonOutputFormat.LineRecordWriter extends RecordWriter<Text,CrawlDatum>
-
-
Constructor Summary
Constructors Constructor Description LineRecordWriter(DataOutputStream out)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close(TaskAttemptContext context)
void
write(Text key, CrawlDatum value)
-
-
-
Constructor Detail
-
LineRecordWriter
public LineRecordWriter(DataOutputStream out)
-
-
Method Detail
-
write
public void write(Text key, CrawlDatum value) throws IOException
- Specified by:
write
in classRecordWriter<Text,CrawlDatum>
- Throws:
IOException
-
close
public void close(TaskAttemptContext context) throws IOException
- Specified by:
close
in classRecordWriter<Text,CrawlDatum>
- Throws:
IOException
-
-