Class StreamletReducers


  • public final class StreamletReducers
    extends Object
    This class contains a few standard reduces that can be used with Streamlet reduce functions such as reduceByKeyAndWindow. Example, assuming s is a Stringlet object and each tuple has these functions: - Integer getKey() and - Double getValue() To get streams of sum, min and max of all values upto the current one: s.reduceByKey(T::getKey, T::getValue, StreamletReducers::sum); s.reduceByKey(T::getKey, T::getValue, StreamletReducers::min); s.reduceByKey(T::getKey, T::getValue, StreamletReducers::max);