// More usefully, you can query the state you created earlier
topology
.newDRPCStream("count_per_actor", drpc)
.stateQuery(countState, new Fields("args"), new MapGet(), new Fields("count"));
// 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"));
// For how to call DRPC calls, go back to the main method