You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@accumulo.apache.org by "Mike Drob (JIRA)" <ji...@apache.org> on 2014/10/09 22:09:34 UTC

[jira] [Commented] (ACCUMULO-3217) KeyValue doesn't implement equals or hashCode

    [ https://issues.apache.org/jira/browse/ACCUMULO-3217?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14165655#comment-14165655 ] 

Mike Drob commented on ACCUMULO-3217:
-------------------------------------

KeyValue extends SimpleImmutableEntry<Key,Value>, which has equals and hashCode defined. ACCUMULO-2477 fixed this for at least master/1.7.0

> KeyValue doesn't implement equals or hashCode
> ---------------------------------------------
>
>                 Key: ACCUMULO-3217
>                 URL: https://issues.apache.org/jira/browse/ACCUMULO-3217
>             Project: Accumulo
>          Issue Type: Bug
>          Components: client
>    Affects Versions: 1.5.0, 1.5.1, 1.5.2, 1.6.0, 1.6.1
>            Reporter: Josh Elser
>            Assignee: Josh Elser
>            Priority: Critical
>             Fix For: 1.5.3, 1.6.2, 1.7.0
>
>
> KeyValue doesn't actually implement equals or hashCode which kind of sucks.
> Notably, I can't take the Entry<Key,Value> objects that I get from two scanners and check if they're equal.
> This is a trivial fix to delegate down to the Key and Value equals methods.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)