public abstract class RecordWriter<K,V> extends Object
RecordWriter
writes the output <key, value> pairs
to an output file.
RecordWriter
implementations write the job outputs to the
FileSystem
.
OutputFormat
构造器和说明 |
---|
RecordWriter() |
public abstract void write(K key, V value) throws IOException, InterruptedException
key
- the key to write.value
- the value to write.IOException
InterruptedException
public abstract void close(TaskAttemptContext context) throws IOException, InterruptedException
RecordWriter
to future operations.context
- the context of the taskIOException
InterruptedException
Copyright © 2009 The Apache Software Foundation