public static class TwitterExample.SelectEnglishAndTokenizeFlatMap extends Object implements org.apache.flink.api.common.functions.FlatMapFunction<String,org.apache.flink.api.java.tuple.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)" (Tuple2<String,
Integer>).
Copyright © 2014–2020 The Apache Software Foundation. All rights reserved.