Package org.apache.hadoop.mapred
Interface RecordWriter<K,V>
@Public
@Stable
public interface RecordWriter<K,V>
RecordWriter writes the output <key, value> pairs
to an output file.
RecordWriter implementations write the job outputs to the
FileSystem.
- See Also:
-
Method Summary
-
Method Details
-
write
Writes a key/value pair.- Parameters:
key- the key to write.value- the value to write.- Throws:
IOException
-
close
Close thisRecordWriterto future operations.- Parameters:
reporter- facility to report progress.- Throws:
IOException
-