public class HadoopOutputFormat<K extends Writable,V extends Writable> extends Object implements org.apache.flink.api.common.io.OutputFormat<Tuple2<K,V>>
| 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 |
close()
commit the task by moving the output file out from the temporary directory.
|
void |
configure(org.apache.flink.configuration.Configuration parameters) |
org.apache.hadoop.conf.Configuration |
getConfiguration() |
org.apache.hadoop.mapreduce.OutputFormat<K,V> |
getHadoopOutputFormat() |
void |
open(int taskNumber,
int numTasks)
create the temporary output file for hadoop RecordWriter.
|
void |
setConfiguration(org.apache.hadoop.conf.Configuration configuration) |
void |
setHadoopOutputFormat(org.apache.hadoop.mapreduce.OutputFormat<K,V> mapreduceOutputFormat) |
void |
writeRecord(Tuple2<K,V> record) |
public void setConfiguration(org.apache.hadoop.conf.Configuration configuration)
public org.apache.hadoop.conf.Configuration getConfiguration()
public void setHadoopOutputFormat(org.apache.hadoop.mapreduce.OutputFormat<K,V> mapreduceOutputFormat)
public void configure(org.apache.flink.configuration.Configuration parameters)
public void open(int taskNumber,
int numTasks)
throws IOException
public void writeRecord(Tuple2<K,V> record) throws IOException
public void close()
throws IOException
Copyright © 2014 The Apache Software Foundation. All rights reserved.