hbase-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From anoopsamj...@apache.org
Subject hbase git commit: HBASE-13158 When client supports CellBlock, return the result Cells as controller payload for get(Get) API also - Addendum
Date Tue, 22 Dec 2015 04:28:32 GMT
Repository: hbase
Updated Branches:
  refs/heads/branch-1 b0965b180 -> b7100c934


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


Project: http://git-wip-us.apache.org/repos/asf/hbase/repo
Commit: http://git-wip-us.apache.org/repos/asf/hbase/commit/b7100c93
Tree: http://git-wip-us.apache.org/repos/asf/hbase/tree/b7100c93
Diff: http://git-wip-us.apache.org/repos/asf/hbase/diff/b7100c93

Branch: refs/heads/branch-1
Commit: b7100c934b8ca8e77208949f92a7d173c9e4c558
Parents: b0965b1
Author: anoopsjohn <anoopsamjohn@gmail.com>
Authored: Tue Dec 22 09:58:12 2015 +0530
Committer: anoopsjohn <anoopsamjohn@gmail.com>
Committed: Tue Dec 22 09:58:12 2015 +0530

----------------------------------------------------------------------
 .../src/main/java/org/apache/hadoop/hbase/client/HTable.java       | 2 +-
 .../main/java/org/apache/hadoop/hbase/protobuf/ProtobufUtil.java   | 1 +
 2 files changed, 2 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/hbase/blob/b7100c93/hbase-client/src/main/java/org/apache/hadoop/hbase/client/HTable.java
----------------------------------------------------------------------
diff --git a/hbase-client/src/main/java/org/apache/hadoop/hbase/client/HTable.java b/hbase-client/src/main/java/org/apache/hadoop/hbase/client/HTable.java
index 35d9a74..24dc06a 100644
--- a/hbase-client/src/main/java/org/apache/hadoop/hbase/client/HTable.java
+++ b/hbase-client/src/main/java/org/apache/hadoop/hbase/client/HTable.java
@@ -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);
          }

http://git-wip-us.apache.org/repos/asf/hbase/blob/b7100c93/hbase-client/src/main/java/org/apache/hadoop/hbase/protobuf/ProtobufUtil.java
----------------------------------------------------------------------
diff --git a/hbase-client/src/main/java/org/apache/hadoop/hbase/protobuf/ProtobufUtil.java
b/hbase-client/src/main/java/org/apache/hadoop/hbase/protobuf/ProtobufUtil.java
index 907650b..47305ff 100644
--- a/hbase-client/src/main/java/org/apache/hadoop/hbase/protobuf/ProtobufUtil.java
+++ b/hbase-client/src/main/java/org/apache/hadoop/hbase/protobuf/ProtobufUtil.java
@@ -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);


Mime
View raw message