You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@accumulo.apache.org by "Billie Rinaldi (JIRA)" <ji...@apache.org> on 2012/06/26 23:32:42 UTC
[jira] [Created] (ACCUMULO-653) Use equals instead of compareTo
when comparing Keys
Billie Rinaldi created ACCUMULO-653:
---------------------------------------
Summary: Use equals instead of compareTo when comparing Keys
Key: ACCUMULO-653
URL: https://issues.apache.org/jira/browse/ACCUMULO-653
Project: Accumulo
Issue Type: Task
Components: client
Reporter: Billie Rinaldi
Assignee: Billie Rinaldi
Fix For: 1.5.0
I recently learned that the Key equals method is much, much faster than the compareTo method. We should make sure to use equals when doing boolean comparisons (= and !=), and convert less than/greater than comparisons to boolean where possible.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Resolved] (ACCUMULO-653) Use equals instead of compareTo
when comparing Keys
Posted by "Billie Rinaldi (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/ACCUMULO-653?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Billie Rinaldi resolved ACCUMULO-653.
-------------------------------------
Resolution: Fixed
> Use equals instead of compareTo when comparing Keys
> ---------------------------------------------------
>
> Key: ACCUMULO-653
> URL: https://issues.apache.org/jira/browse/ACCUMULO-653
> Project: Accumulo
> Issue Type: Task
> Components: client
> Reporter: Billie Rinaldi
> Assignee: Billie Rinaldi
> Fix For: 1.5.0
>
>
> I recently learned that the Key equals method is much, much faster than the compareTo method. We should make sure to use equals when doing boolean comparisons (= and !=), and convert less than/greater than comparisons to boolean where possible.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira