You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ignite.apache.org by "Denis Magda (JIRA)" <ji...@apache.org> on 2017/10/26 20:34:00 UTC

[jira] [Commented] (IGNITE-6717) Hashcode/equals is not needed for custom keys serialized into a binary form

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

Denis Magda commented on IGNITE-6717:
-------------------------------------

[~pgarg], please review the "Automatic Hash Code Calculation and Equals Implementation" callout in some of the sections from these pages:
* https://apacheignite.readme.io/docs/binary-marshaller#section-basic-concepts
* https://apacheignite-sql.readme.io/v2.3/docs/schema-and-indexes#section-custom-keys

Next, we need to put similar information to .NET and C++ pages:

.NET:
* https://apacheignite-sql.readme.io/v2.3/docs/net-schema-and-indexes#custom-keys
* https://apacheignite-net.readme.io/docs/serialization

C++:
* https://apacheignite-sql.readme.io/v2.3/docs/cplus-schema-and-indexes#custom-keys
* https://apacheignite-cpp.readme.io/docs/serialization

[~ptupitsyn], [~isapego], could you help to document .NET and C++ parts? Please refer to the content prepared for Java.

> Hashcode/equals is not needed for custom keys serialized into a binary form
> ---------------------------------------------------------------------------
>
>                 Key: IGNITE-6717
>                 URL: https://issues.apache.org/jira/browse/IGNITE-6717
>             Project: Ignite
>          Issue Type: Task
>      Security Level: Public(Viewable by anyone) 
>          Components: documentation
>            Reporter: Denis Magda
>            Assignee: Denis Magda
>             Fix For: 2.3
>
>
> It turns out that hashCode/equals implementation is no longer required for custom complex keys if a key is serialized to the binary form. Discussed here:
> http://apache-ignite-developers.2346864.n4.nabble.com/Ignite-2-3-troubles-with-key-value-APIs-in-the-cluster-configured-with-DDL-td23501.html#a23506
> The marshaller calculates the hash code automatically. This info has to be added to the binary marshaller page:
> https://apacheignite.readme.io/docs/binary-marshaller



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