HBASE-18251 Remove unnecessary traversing to the first and last keys in
the CellSet (Toshihoro Suzuki)
This commit is contained in:
parent
a49d43bfbf
commit
6255dc7001
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue