Class HadoopOutputFormat<K,V>
- java.lang.Object
-
- org.apache.flink.api.common.io.RichOutputFormat<T>
-
- org.apache.flink.api.java.hadoop.common.HadoopOutputFormatCommonBase<T>
-
- org.apache.flink.api.java.hadoop.mapreduce.HadoopOutputFormatBase<K,V,Tuple2<K,V>>
-
- org.apache.flink.api.java.hadoop.mapreduce.HadoopOutputFormat<K,V>
-
- Type Parameters:
K
- Key TypeV
- Value Type
- All Implemented Interfaces:
Serializable
,FinalizeOnMaster
,OutputFormat<Tuple2<K,V>>
@Public public class HadoopOutputFormat<K,V> extends HadoopOutputFormatBase<K,V,Tuple2<K,V>>
OutputFormat implementation allowing to use Hadoop (mapreduce) OutputFormats with Flink.- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.apache.flink.api.common.io.FinalizeOnMaster
FinalizeOnMaster.FinalizationContext
-
Nested classes/interfaces inherited from interface org.apache.flink.api.common.io.OutputFormat
OutputFormat.InitializationContext
-
-
Field Summary
-
Fields inherited from class org.apache.flink.api.java.hadoop.mapreduce.HadoopOutputFormatBase
CLOSE_MUTEX, configuration, CONFIGURE_MUTEX, context, mapreduceOutputFormat, OPEN_MUTEX, outputCommitter, recordWriter, taskNumber
-
Fields inherited from class org.apache.flink.api.java.hadoop.common.HadoopOutputFormatCommonBase
credentials
-
-
Constructor Summary
Constructors Constructor Description HadoopOutputFormat(org.apache.hadoop.mapreduce.OutputFormat<K,V> mapreduceOutputFormat, org.apache.hadoop.mapreduce.Job job)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
writeRecord(Tuple2<K,V> record)
Adds a record to the output.-
Methods inherited from class org.apache.flink.api.java.hadoop.mapreduce.HadoopOutputFormatBase
close, configure, finalizeGlobal, getConfiguration, open
-
Methods inherited from class org.apache.flink.api.java.hadoop.common.HadoopOutputFormatCommonBase
read, write
-
Methods inherited from class org.apache.flink.api.common.io.RichOutputFormat
getRuntimeContext, setRuntimeContext
-
-
-
-
Method Detail
-
writeRecord
public void writeRecord(Tuple2<K,V> record) throws IOException
Description copied from interface:OutputFormat
Adds a record to the output.When this method is called, the output format it guaranteed to be opened.
- Parameters:
record
- The records to add to the output.- Throws:
IOException
- Thrown, if the records could not be added due to an I/O problem.
-
-