public int compareTo(Row o) {
    int res = Row.COMPARATOR.compare(this, o);
    if ((o instanceof RegionCoprocessorServiceExec) && res == 0) {
      RegionCoprocessorServiceExec exec = (RegionCoprocessorServiceExec) o;
      res = method.getFullName().compareTo(exec.getMethod().getFullName());
      if (res == 0) {
        res = Bytes.compareTo(request.toByteArray(), exec.getRequest().toByteArray());
      }
    }
    return res;
  }
Represents a coprocessor service method execution against a single region. While coprocessor
service calls are performed against a region, this class implements {@link Row} in order to make
use of the AsyncProcess framework for batching multi-region calls per region server.
<p>
<b>Note:</b> This class should not be instantiated directly. Use HTable#batchCoprocessorService
instead.
</p>
hbase-client/src/main/java/org/apache/hadoop/hbase/client/RegionCoprocessorServiceExec.java