try {
//vv EndpointForMethodExample
/*[*/
Batch.Call call = Batch.forMethod(RowCountProtocol.class,
"getKeyValueCount");/*]*/
Map<byte[], Long> results = table.coprocessorExec(
RowCountProtocol.class, null, null, call);
// ^^ EndpointForMethodExample
long total = 0;
for (Map.Entry<byte[], Long> entry : results.entrySet()) {