K
- Type of the keyV
- Type of the value.@Public public class HadoopOutputFormat<K,V> extends HadoopOutputFormatBase<K,V,Tuple2<K,V>>
The IF is returning a Tuple2<K,V>
.
FinalizeOnMaster.FinalizationContext
OutputFormat.InitializationContext
CLOSE_MUTEX, CONFIGURE_MUTEX, context, jobConf, mapredOutputFormat, OPEN_MUTEX, outputCommitter, recordWriter
credentials
Constructor and Description |
---|
HadoopOutputFormat(org.apache.hadoop.mapred.OutputFormat<K,V> mapredOutputFormat,
Class<org.apache.hadoop.mapred.OutputCommitter> outputCommitterClass,
org.apache.hadoop.mapred.JobConf job) |
HadoopOutputFormat(org.apache.hadoop.mapred.OutputFormat<K,V> mapredOutputFormat,
org.apache.hadoop.mapred.JobConf job) |
Modifier and Type | Method and Description |
---|---|
void |
writeRecord(Tuple2<K,V> record)
Adds a record to the output.
|
close, configure, finalizeGlobal, getJobConf, open
read, write
getRuntimeContext, setRuntimeContext
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
finalizeGlobal
open
public HadoopOutputFormat(org.apache.hadoop.mapred.OutputFormat<K,V> mapredOutputFormat, org.apache.hadoop.mapred.JobConf job)
public void writeRecord(Tuple2<K,V> record) throws IOException
OutputFormat
When this method is called, the output format it guaranteed to be opened.
record
- The records to add to the output.IOException
- Thrown, if the records could not be added due to an I/O problem.Copyright © 2014–2023 The Apache Software Foundation. All rights reserved.