@Override public int compareTo(Row o) { int res = Bytes.compareTo(this.getRow(), o.getRow()); 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; }
@Override public int compareTo(Row o) { int res = Bytes.compareTo(this.getRow(), o.getRow()); 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; }
@Override public int compareTo(Row o) { int res = Bytes.compareTo(this.getRow(), o.getRow()); 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; }
@Override public int compareTo(Row o) { int res = Bytes.compareTo(this.getRow(), o.getRow()); 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; }
builder.addAction(actionBuilder.setServiceCall(ClientProtos.CoprocessorServiceCall .newBuilder().setRow(ByteStringer.wrap(exec.getRow())) .setServiceName(exec.getMethod().getService().getFullName()) .setMethodName(exec.getMethod().getName()) .setRequest(exec.getRequest().toByteString()))); } else if (row instanceof RowMutations) {