HBASE-13158 When client supports CellBlock, return the result Cells as controller payload for get(Get) API also - Addendum

This commit is contained in:
anoopsjohn 2015-12-22 09:58:12 +05:30
parent b0965b1805
commit b7100c934b
2 changed files with 2 additions and 1 deletions

View File

@ -756,7 +756,7 @@ public class HTable implements HTableInterface, RegionLocator {
try {
ClientProtos.GetResponse response = getStub().get(controller, request);
if (!response.hasResult()) return null;
return ProtobufUtil.toResult(response.getResult());
return ProtobufUtil.toResult(response.getResult(), controller.cellScanner());
} catch (ServiceException se) {
throw ProtobufUtil.getRemoteException(se);
}

View File

@ -1591,6 +1591,7 @@ public final class ProtobufUtil {
try {
GetResponse response = client.get(null, request);
if (!response.hasResult()) return null;
// We pass 'null' RpcController. So Result will be pure RB.
return toResult(response.getResult());
} catch (ServiceException se) {
throw getRemoteException(se);