hbase-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From apurt...@apache.org
Subject hbase git commit: HBASE-18251 Remove unnecessary traversing to the first and last keys in the CellSet (Toshihoro Suzuki)
Date Wed, 16 Aug 2017 17:51:07 GMT
Repository: hbase
Updated Branches:
  refs/heads/branch-1 a49d43bfb -> 6255dc700


HBASE-18251 Remove unnecessary traversing to the first and last keys in
the CellSet (Toshihoro Suzuki)


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

Branch: refs/heads/branch-1
Commit: 6255dc70014ad3faf70ae43a786e8d4f5b79dd41
Parents: a49d43b
Author: Ramkrishna <ramkrishna.s.vasudevan@intel.com>
Authored: Wed Aug 16 11:05:43 2017 +0530
Committer: Andrew Purtell <apurtell@apache.org>
Committed: Wed Aug 16 10:50:58 2017 -0700

----------------------------------------------------------------------
 .../org/apache/hadoop/hbase/regionserver/CellSkipListSet.java    | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/hbase/blob/6255dc70/hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/CellSkipListSet.java
----------------------------------------------------------------------
diff --git a/hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/CellSkipListSet.java
b/hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/CellSkipListSet.java
index 4c3ab50..916a428 100644
--- a/hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/CellSkipListSet.java
+++ b/hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/CellSkipListSet.java
@@ -123,11 +123,11 @@ public class CellSkipListSet implements NavigableSet<Cell> {
   }
 
   public Cell first() {
-    return this.delegatee.get(this.delegatee.firstKey());
+    return this.delegatee.firstEntry().getValue();
   }
 
   public Cell last() {
-    return this.delegatee.get(this.delegatee.lastKey());
+    return this.delegatee.lastEntry().getValue();
   }
 
   public boolean add(Cell e) {


Mime
View raw message