public static class TwitterStream.SelectEnglishAndTokenizeFlatMap extends JSONParseFlatMap<String,String>
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
| Constructor and Description |
|---|
SelectEnglishAndTokenizeFlatMap() |
| Modifier and Type | Method and Description |
|---|---|
void |
flatMap(String value,
Collector<String> out)
Select the language from the incoming JSON text
|
get, getBoolean, getDouble, getInt, getLong, getStringclose, getIterationRuntimeContext, getRuntimeContext, open, setRuntimeContextCopyright © 2015 The Apache Software Foundation. All rights reserved.