September 2017
Beginner to intermediate
360 pages
8h 13m
English
The following are characteristics of the map function:
Here is the example:
class UpperCase implements MapFunction { @Override public Values execute(TridentTuple input) { return new Values(input.getString(0).toUpperCase()); }}
Input:
[this is a simple example of trident topology]
Output:
[THIS IS A SIMPLE EXAMPLE OF TRIDENT TOPOLOGY]
The following are characteristics of the FlatMap function:
Here is the example:
class SplitMapFunction implements FlatMapFunction { @Override public Iterable<Values> execute(TridentTuple ...Read now
Unlock full access