@Override public void write(final DataOutput out) throws IOException { ProtobufUtil.toResultNoData(result).writeDelimitedTo(DataOutputOutputStream.from(out)); out.writeInt(result.size()); for(Cell cell : result.listCells()) { KeyValue kv = KeyValueUtil.ensureKeyValue(cell); KeyValue.write(kv, out); } } }
@Override public void write(final DataOutput out) throws IOException { ProtobufUtil.toResultNoData(result).writeDelimitedTo(DataOutputOutputStream.from(out)); out.writeInt(result.size()); for(KeyValue kv : result.list()) { KeyValue.write(kv, out); } }
private void addResult(final MutateResponse.Builder builder, final Result result, final PayloadCarryingRpcController rpcc) { if (result == null) return; if (isClientCellBlockSupport()) { builder.setResult(ProtobufUtil.toResultNoData(result)); rpcc.setCellScanner(result.cellScanner()); } else { ClientProtos.Result pbr = ProtobufUtil.toResult(result); builder.setResult(pbr); } }
ClientProtos.Result pbResult = null; if (isClientCellBlockSupport()) { pbResult = ProtobufUtil.toResultNoData(r);