private class WARCOutputFormat.WARCWriter extends org.apache.hadoop.mapreduce.RecordWriter<org.apache.hadoop.io.NullWritable,WARCWritable>
Modifier and Type | Field and Description |
---|---|
private WARCFileWriter |
writer |
Constructor and Description |
---|
WARCWriter(org.apache.hadoop.mapreduce.TaskAttemptContext context) |
Modifier and Type | Method and Description |
---|---|
void |
close(org.apache.hadoop.mapreduce.TaskAttemptContext context) |
void |
write(org.apache.hadoop.io.NullWritable key,
WARCWritable value) |
private final WARCFileWriter writer
public WARCWriter(org.apache.hadoop.mapreduce.TaskAttemptContext context) throws IOException
IOException
public void write(org.apache.hadoop.io.NullWritable key, WARCWritable value) throws IOException, InterruptedException
write
in class org.apache.hadoop.mapreduce.RecordWriter<org.apache.hadoop.io.NullWritable,WARCWritable>
IOException
InterruptedException
public void close(org.apache.hadoop.mapreduce.TaskAttemptContext context) throws IOException, InterruptedException
close
in class org.apache.hadoop.mapreduce.RecordWriter<org.apache.hadoop.io.NullWritable,WARCWritable>
IOException
InterruptedException
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.