public static final class WordCount.Tokenizer extends Object implements FlatMapFunction<String,Tuple2<String,Integer>>
Tuple2<String,
Integer>
).Constructor and Description |
---|
Tokenizer() |
Modifier and Type | Method and Description |
---|---|
void |
flatMap(String value,
Collector<Tuple2<String,Integer>> out)
The core method of the FlatMapFunction.
|
public void flatMap(String value, Collector<Tuple2<String,Integer>> out) throws Exception
FlatMapFunction
flatMap
in interface FlatMapFunction<String,Tuple2<String,Integer>>
value
- The input value.out
- The collector for returning result values.Exception
- This method may throw exceptions. Throwing an exception will cause the operation
to fail and may trigger recovery.Copyright © 2014–2017 The Apache Software Foundation. All rights reserved.