@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.
OutputFormatvoid write(K key, V value) throws IOException
key - the key to write.value - the value to write.IOExceptionvoid close(Reporter reporter) throws IOException
RecordWriter to future operations.reporter - facility to report progress.IOExceptionCopyright © 2016 Apache Software Foundation. All rights reserved.