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-15379 Fake cells created in read path not implementing SettableSequenceId. (Amal Joshy)
Date Sun, 13 Mar 2016 16:35:26 GMT
Repository: hbase
Updated Branches:
  refs/heads/master b6b9910e2 -> 88ca84f68


HBASE-15379 Fake cells created in read path not implementing SettableSequenceId. (Amal Joshy)


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

Branch: refs/heads/master
Commit: 88ca84f685df1ff78bf184c751ec9607147a7a2e
Parents: b6b9910
Author: anoopsjohn <anoopsamjohn@gmail.com>
Authored: Sun Mar 13 22:05:05 2016 +0530
Committer: anoopsjohn <anoopsamjohn@gmail.com>
Committed: Sun Mar 13 22:05:05 2016 +0530

----------------------------------------------------------------------
 .../src/main/java/org/apache/hadoop/hbase/CellUtil.java        | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/hbase/blob/88ca84f6/hbase-common/src/main/java/org/apache/hadoop/hbase/CellUtil.java
----------------------------------------------------------------------
diff --git a/hbase-common/src/main/java/org/apache/hadoop/hbase/CellUtil.java b/hbase-common/src/main/java/org/apache/hadoop/hbase/CellUtil.java
index 85b3913..d9f0679 100644
--- a/hbase-common/src/main/java/org/apache/hadoop/hbase/CellUtil.java
+++ b/hbase-common/src/main/java/org/apache/hadoop/hbase/CellUtil.java
@@ -1653,9 +1653,13 @@ public final class CellUtil {
    * These cells are used in reseeks/seeks to improve the read performance.
    * They are not real cells that are returned back to the clients
    */
-  private static abstract class EmptyCell implements Cell {
+  private static abstract class EmptyCell implements Cell, SettableSequenceId {
 
     @Override
+    public void setSequenceId(long seqId) {
+      // Fake cells don't need seqId, so leaving it as a noop.
+    }
+    @Override
     public byte[] getRowArray() {
       return EMPTY_BYTE_ARRAY;
     }


Mime
View raw message