MapReduceState mrState = MapReduceState.getMapReduceStateFromJobID( datastore, jobId); // There's a bit of ceremony to get the actual counter. This // example is intentionally verbose for clarity. First get all the // Counters, // then we get the CounterGroup, then we get the Counter, then we // get the count. Counters counters = mrState.getCounters(); CounterGroup counterGroup = counters.getGroup("CommentWords"); Counter counter = counterGroup.findCounter("count"); long wordCount = counter.getValue(); // Finally!
--
You received this message because you are subscribed to the Google Groups "Google App Engine" group.
To post to this group, send email to google-a...@googlegroups.com.
To unsubscribe from this group, send email to google-appengi...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.
To unsubscribe from this group, send email to google-appengi...@googlegroups.com.