De-serializes the response to a MultiAction RPC. See HBase's MultiResponse. Only used with HBase 0.94 and earlier.
(final ChannelBuffer buf)
| 717 | * Only used with HBase 0.94 and earlier. |
| 718 | */ |
| 719 | Response responseFromBuffer(final ChannelBuffer buf) { |
| 720 | switch (buf.readByte()) { |
| 721 | case 58: |
| 722 | return deserializeMultiPutResponse(buf); |
| 723 | case 67: |
| 724 | return deserializeMultiResponse(buf); |
| 725 | } |
| 726 | throw new NonRecoverableException("Couldn't de-serialize " |
| 727 | + Bytes.pretty(buf)); |
| 728 | } |
| 729 | |
| 730 | /** |
| 731 | * De-serializes a {@code MultiResponse}. |
no test coverage detected