// Here is a more complex example
topology
.newDRPCStream("count_per_actors", drpc)
.each(new Fields("args"), new Split(" "), new Fields("actor"))
.groupBy(new Fields("actor"))
.stateQuery(countState, new Fields("actor"), new MapGet(), new Fields("individual_count"))
.each(new Fields("individual_count"), new FilterNull())
.aggregate(new Fields("individual_count"), new Sum(), new Fields("count"));