public static class TwitterExample.SelectEnglishAndTokenizeFlatMap extends Object implements FlatMapFunction<String,Tuple2<String,Integer>>
Implements a string tokenizer that splits sentences into words as a user-defined
FlatMapFunction. The function takes a line (String) and splits it into multiple pairs in the
form of "(word,1)" (
|Constructor and Description|
|Modifier and Type||Method and Description|
Select the language from the incoming JSON text.
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–2022 The Apache Software Foundation. All rights reserved.