HBASE-18251 Remove unnecessary traversing to the first and last keys in

the CellSet (Toshihoro Suzuki)
This commit is contained in:
Ramkrishna 2017-08-16 11:05:43 +05:30 committed by Andrew Purtell
parent a49d43bfbf
commit 6255dc7001
1 changed files with 2 additions and 2 deletions

View File

@ -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) {