K
- Key TypeV
- Value Type@Public public class HadoopOutputFormat<K,V> extends HadoopOutputFormatBase<K,V,Tuple2<K,V>>
FinalizeOnMaster.FinalizationContext
OutputFormat.InitializationContext
CLOSE_MUTEX, configuration, CONFIGURE_MUTEX, context, mapreduceOutputFormat, OPEN_MUTEX, outputCommitter, recordWriter, taskNumber
credentials
Constructor and Description |
---|
HadoopOutputFormat(org.apache.hadoop.mapreduce.OutputFormat<K,V> mapreduceOutputFormat,
org.apache.hadoop.mapreduce.Job job) |
Modifier and Type | Method and Description |
---|---|
void |
writeRecord(Tuple2<K,V> record)
Adds a record to the output.
|
close, configure, finalizeGlobal, getConfiguration, open
read, write
getRuntimeContext, setRuntimeContext
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
finalizeGlobal
open
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–2024 The Apache Software Foundation. All rights reserved.