concept state in category storm
appears as: state

This is an excerpt from Manning's book Storm Applied: Strategies for real-time event processing.
Steps 1, 2, and 3 provide a complete HeatMapBuilder implementation, showing how you can maintain state with an in-memory map and also how you can use Storm’s built-in tick tuple to emit a tuple at particular time intervals. With this implementation complete, let’s move on to persisting the results of the tuples emitted by HeatMapBuilder.
persistentAggregate— This operation applies across multiple batches and takes on the dual responsibility of aggregating the tuples and persisting the results. It will persist the aggregated results to a datastore managed by a <state-factory>. A state factory is Trident’s abstraction for working with a datastore. Because it works with state, persistentAggregate can work across batches. It does this by aggregating the current batch from the stream and then aggregating that value with the current value in the datastore. This operation results in a TridentState that can be queried against. The code for setting up persistentAggregate is as follows: TridentState aggregated = stream.persistentAggregate(<state-factory>, new Count(), new Fields("output"));