[jira] [Assigned] (HBASE-18251) Remove unnecessary traversing to the first and last keys in the CellSet

2017-07-12 Thread Ben Watson (JIRA)

 [ 
https://issues.apache.org/jira/browse/HBASE-18251?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Ben Watson reassigned HBASE-18251:
--

Assignee: (was: Ben Watson)

> Remove unnecessary traversing to the first and last keys in the CellSet
> ---
>
> Key: HBASE-18251
> URL: https://issues.apache.org/jira/browse/HBASE-18251
> Project: HBase
>  Issue Type: Bug
>Reporter: Anastasia Braginsky
>
> The implementation of finding the first and last keys in the CellSet is as 
> following:
> {code}
>  public Cell first() {
> return this.delegatee.get(this.delegatee.firstKey());
>   }
>   public Cell last() {
> return this.delegatee.get(this.delegatee.lastKey());
>   }
> {code}
> Recall we have Cell to Cell mapping, therefore the methods bringing the 
> first/last key, which allready return Cell. Thus no need to waist time on the 
> get() method for the same Cell.
> Fix: return just the first/lastKey(), should be at least twice more effective.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)


[jira] [Assigned] (HBASE-18251) Remove unnecessary traversing to the first and last keys in the CellSet

2017-07-12 Thread Ben Watson (JIRA)

 [ 
https://issues.apache.org/jira/browse/HBASE-18251?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Ben Watson reassigned HBASE-18251:
--

Assignee: Ben Watson

> Remove unnecessary traversing to the first and last keys in the CellSet
> ---
>
> Key: HBASE-18251
> URL: https://issues.apache.org/jira/browse/HBASE-18251
> Project: HBase
>  Issue Type: Bug
>Reporter: Anastasia Braginsky
>Assignee: Ben Watson
>
> The implementation of finding the first and last keys in the CellSet is as 
> following:
> {code}
>  public Cell first() {
> return this.delegatee.get(this.delegatee.firstKey());
>   }
>   public Cell last() {
> return this.delegatee.get(this.delegatee.lastKey());
>   }
> {code}
> Recall we have Cell to Cell mapping, therefore the methods bringing the 
> first/last key, which allready return Cell. Thus no need to waist time on the 
> get() method for the same Cell.
> Fix: return just the first/lastKey(), should be at least twice more effective.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)