public static class TwitterTopology.SelectLanguageFlatMap extends JSONParseFlatMap<String,String>
Constructor and Description |
---|
SelectLanguageFlatMap() |
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, getString
close, getIterationRuntimeContext, getRuntimeContext, open, setRuntimeContext
public void flatMap(String value, Collector<String> out) throws Exception
flatMap
in interface FlatMapFunction<String,String>
flatMap
in class RichFlatMapFunction<String,String>
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.