@InterfaceAudience.Public
@InterfaceStability.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
.
OutputFormat
void write(K key, V value) throws IOException
key
- the key to write.value
- the value to write.IOException
void close(Reporter reporter) throws IOException
RecordWriter
to future operations.reporter
- facility to report progress.IOException
Copyright © 2017 Apache Software Foundation. All rights reserved.