MCPcopy Create free account
hub / github.com/OpenTSDB/asynchbase / deserialize

Method deserialize

src/GetRequest.java:705–715  ·  view source on GitHub ↗
(final ChannelBuffer buf, final int cell_size)

Source from the content-addressed store, hash-verified

703 }
704
705 @Override
706 Object deserialize(final ChannelBuffer buf, final int cell_size) {
707 final ClientPB.GetResponse resp =
708 readProtobuf(buf, ClientPB.GetResponse.PARSER);
709 if (isGetRequest()) {
710 return extractResponse(resp, buf, cell_size);
711 } else {
712 final ClientPB.Result result = resp.getResult();
713 return result != null ? result.getExists() : false; // is `null' possible here?
714 }
715 }
716
717
718 public void setServerBlockCache(final boolean populate_blockcache) {

Callers

nothing calls this directly

Calls 3

isGetRequestMethod · 0.95
extractResponseMethod · 0.95
readProtobufMethod · 0.80

Tested by

no test coverage detected