@Override public int hashCode() { return Objects.hashCode(Bytes.hashCode(this.getRow()), method.getFullName(), request); }
@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; }
cpBuilder.setRow(UnsafeByteOperations.unsafeWrap(exec.getRow())) .setServiceName(exec.getMethod().getService().getFullName()) .setMethodName(exec.getMethod().getName())
cpBuilder.setRow(UnsafeByteOperations.unsafeWrap(exec.getRow())) .setServiceName(exec.getMethod().getService().getFullName()) .setMethodName(exec.getMethod().getName())
@Override public int hashCode() { return Objects.hashCode(Bytes.hashCode(this.getRow()), method.getFullName(), request); }
@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; }
cpBuilder.setRow(UnsafeByteOperations.unsafeWrap(exec.getRow())) .setServiceName(exec.getMethod().getService().getFullName()) .setMethodName(exec.getMethod().getName())
cpBuilder.setRow(UnsafeByteOperations.unsafeWrap(exec.getRow())) .setServiceName(exec.getMethod().getService().getFullName()) .setMethodName(exec.getMethod().getName())
@Override public int hashCode() { return Objects.hashCode(Bytes.hashCode(this.getRow()), method.getFullName(), request); }
@Override public int hashCode() { return Objects.hashCode(Bytes.hashCode(this.getRow()), method.getFullName(), request); }
@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; }
RegionCoprocessorServiceExec exec = (RegionCoprocessorServiceExec) row; builder.addAction(actionBuilder.setServiceCall(ClientProtos.CoprocessorServiceCall .newBuilder().setRow(ByteStringer.wrap(exec.getRow())) .setServiceName(exec.getMethod().getService().getFullName()) .setMethodName(exec.getMethod().getName())
cpBuilder.setRow(UnsafeByteOperations.unsafeWrap(exec.getRow())) .setServiceName(exec.getMethod().getService().getFullName()) .setMethodName(exec.getMethod().getName())
regionActionBuilder.addAction(actionBuilder.setServiceCall( ClientProtos.CoprocessorServiceCall.newBuilder() .setRow(ByteStringer.wrap(exec.getRow())) .setServiceName(exec.getMethod().getService().getFullName()) .setMethodName(exec.getMethod().getName())
cpBuilder.setRow(UnsafeByteOperations.unsafeWrap(exec.getRow())) .setServiceName(exec.getMethod().getService().getFullName()) .setMethodName(exec.getMethod().getName())