Repository: hbase
Updated Branches:
  refs/heads/branch-1.4 5b27f6253 -> 3552c70b5


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/3552c70b
Tree: http://git-wip-us.apache.org/repos/asf/hbase/tree/3552c70b
Diff: http://git-wip-us.apache.org/repos/asf/hbase/diff/3552c70b

Branch: refs/heads/branch-1.4
Commit: 3552c70b5557b3b2486fab6594b1fc63c3d787fc
Parents: 5b27f62
Author: Ramkrishna <ramkrishna.s.vasude...@intel.com>
Authored: Wed Aug 16 11:05:43 2017 +0530
Committer: Ramkrishna <ramkrishna.s.vasude...@intel.com>
Committed: Wed Aug 16 11:18:41 2017 +0530

----------------------------------------------------------------------
 .../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/3552c70b/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) {

Reply via email to