(ChannelBuffer buf, int cell_size)
| 631 | } |
| 632 | |
| 633 | @Override |
| 634 | Object deserialize(ChannelBuffer buf, int cell_size) { |
| 635 | if (!this.return_result) { |
| 636 | HBaseRpc.ensureNoCell(cell_size); |
| 637 | } |
| 638 | final ClientPB.MutateResponse resp = |
| 639 | readProtobuf(buf, ClientPB.MutateResponse.PARSER); |
| 640 | final ClientPB.Result result = resp.getResult(); |
| 641 | if (this.return_result) { |
| 642 | final ArrayList<KeyValue> kvs = GetRequest.convertResult(result, |
| 643 | buf, cell_size); |
| 644 | if (kvs.size() != 1) { |
| 645 | throw new InvalidResponseException("Atomic increment returned " |
| 646 | + kvs.size() + " KeyValue(s), but we expected exactly one. kvs=" |
| 647 | + kvs, resp); |
| 648 | } |
| 649 | return kvs.get(0); |
| 650 | } else { |
| 651 | return null; |
| 652 | } |
| 653 | } |
| 654 | } |
nothing calls this directly
no test coverage detected