@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
Modifier and Type | Method and Description |
---|---|
void |
close(Reporter reporter)
Close this
RecordWriter to future operations. |
void |
write(K key,
V value)
Writes a key/value pair.
|
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 © 2019 Apache Software Foundation. All rights reserved.