HBASE-13158 When client supports CellBlock, return the result Cells as controller payload for get(Get) API also - Addendum
This commit is contained in:
parent
b0965b1805
commit
b7100c934b
|
@ -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);
|
||||
}
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue