You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hbase.apache.org by an...@apache.org on 2016/03/13 17:35:26 UTC
hbase git commit: HBASE-15379 Fake cells created in read path not
implementing SettableSequenceId. (Amal Joshy)
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 <an...@gmail.com>
Authored: Sun Mar 13 22:05:05 2016 +0530
Committer: anoopsjohn <an...@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;
}