September 2017
Beginner to intermediate
360 pages
8h 13m
English
The following are the characteristics of the reducer aggregator:
public interface ReducerAggregator<T> extends Serializable { T init(); T reduce(T curr, TridentTuple tuple);}
Example:
public class Count implements ReducerAggregator<Long> { public Long init() { return 0L; } public Long reduce(Long curr, TridentTuple tuple) { return curr + 1; }}
Read now
Unlock full access