public final class HadoopOutputCollector<KEY,VALUE> extends Object implements org.apache.hadoop.mapred.OutputCollector<KEY,VALUE>
Constructor and Description |
---|
HadoopOutputCollector() |
Modifier and Type | Method and Description |
---|---|
void |
collect(KEY key,
VALUE val)
Use the wrapped Flink collector to collect a key-value pair for Flink.
|
void |
setFlinkCollector(Collector<Tuple2<KEY,VALUE>> flinkCollector)
Set the wrapped Flink collector.
|
public void setFlinkCollector(Collector<Tuple2<KEY,VALUE>> flinkCollector)
flinkCollector
- The wrapped Flink OutputCollector.public void collect(KEY key, VALUE val) throws IOException
collect
in interface org.apache.hadoop.mapred.OutputCollector<KEY,VALUE>
key
- the key to collectval
- the value to collectIOException
- unexpected of key or value in key-value pair.Copyright © 2014–2017 The Apache Software Foundation. All rights reserved.