I am learning Trident . There are several methods for Trident Stream s for aggregation tuples in a package, including this one that allows you to pre-map the state of tuples using an Aggregator . But, unfortunately, the built-in analogue additionally saves the state of the map, like the other 9 overloads of persistentAggregate() , only with Aggregator as an argument, no.
So, how can I implement the desired functionality by combining the abstractions and lower-level Trident and Storm tools? Learning the API is quite difficult, because there is almost no Javadoc documentation.
In other words, the persistentAggregate() methods allow you to complete the processing of a stream by updating some constant state:
stream of tuples ---> persistent state
I want to update a constant state and emit different tuples, by the way:
stream of tuples ------> stream of different tuples with persistent state
Stream.aggregate(Fields, Aggregator, Fields) does not provide fault tolerance:
stream of tuples ------> stream of different tuples with simple in-memory state
stream state apache-storm trident
leventov
source share