.persistentAggregate(new MemoryMapState.Factory(), new Count(), new Fields("count"));
// Now, let's calculate the average age of actors seen
topology
.newDRPCStream("age_stats", drpc)
.stateQuery(countState, new TupleCollectionGet(), new Fields("actor", "location"))
.stateQuery(nameToAge, new Fields("actor"), new MapGet(), new Fields("age"))
.each(new Fields("actor","location","age"), new Print())
.groupBy(new Fields("location"))
.chainedAgg()
.aggregate(new Count(), new Fields("count"))