<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">The hashcode is the same either way:<div><br></div><div><a href="https://github.com/infinispan/infinispan/blob/master/core/src/main/java/org/infinispan/marshall/MarshalledValue.java#L193">https://github.com/infinispan/infinispan/blob/master/core/src/main/java/org/infinispan/marshall/MarshalledValue.java#L193</a></div><div><br></div><div><a href="https://github.com/infinispan/infinispan/blob/master/core/src/main/java/org/infinispan/marshall/MarshalledValue.java#L193"></a><br><div><div>On 12 May 2011, at 16:59, Sanne Grinovero wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div>thank you.<br>Not very critical for functionality, but now I'm wondering if the<br>consistent hash is being calculated on the binary form of the key?<br>Just curious if we might end up with inconsistent definitions of<br>"owner" in case it's possible to have the hash function invoked at<br>different points of the key's lifecycle (i.e. if at some point it's<br>calculated on the object form, and in other points of the code it's<br>calculated on byte[], then something would break).<br><br>Especially, if I where to write any custom extension needing to know<br>the owner of a specific key, if I have to apply some considerations.<br><br>Sanne<br><br>2011/5/12 Manik Surtani &lt;<a href="mailto:manik@jboss.org">manik@jboss.org</a>&gt;:<br><blockquote type="cite"><br></blockquote><blockquote type="cite">On 12 May 2011, at 16:06, Manik Surtani wrote:<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">On 11 May 2011, at 18:27, Sanne Grinovero wrote:<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">I'm also wondering how the equals is performed on a serialized key; I<br></blockquote><blockquote type="cite">assume they are compared as byte[], but if that's the case that should<br></blockquote><blockquote type="cite">be clearly documented as it would ignore any custom equals()<br></blockquote><blockquote type="cite">implementation.<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">Your assumption is correct:<br></blockquote><blockquote type="cite"><a href="https://github.com/infinispan/infinispan/blob/master/core/src/main/java/org/infinispan/marshall/MarshalledValue.java#L176">https://github.com/infinispan/infinispan/blob/master/core/src/main/java/org/infinispan/marshall/MarshalledValue.java#L176</a><br></blockquote><blockquote type="cite">Good point that it needs to be documented clearly. &nbsp;Doing it now.<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">Done:<br></blockquote><blockquote type="cite"><a href="http://community.jboss.org/wiki/Marshalling#Equality_Considerations">http://community.jboss.org/wiki/Marshalling#Equality_Considerations</a><br></blockquote><blockquote type="cite">--<br></blockquote><blockquote type="cite">Manik Surtani<br></blockquote><blockquote type="cite"><a href="mailto:manik@jboss.org">manik@jboss.org</a><br></blockquote><blockquote type="cite"><a href="http://twitter.com/maniksurtani">twitter.com/maniksurtani</a><br></blockquote><blockquote type="cite">Lead, Infinispan<br></blockquote><blockquote type="cite"><a href="http://www.infinispan.org">http://www.infinispan.org</a><br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">_______________________________________________<br></blockquote><blockquote type="cite">infinispan-dev mailing list<br></blockquote><blockquote type="cite"><a href="mailto:infinispan-dev@lists.jboss.org">infinispan-dev@lists.jboss.org</a><br></blockquote><blockquote type="cite"><a href="https://lists.jboss.org/mailman/listinfo/infinispan-dev">https://lists.jboss.org/mailman/listinfo/infinispan-dev</a><br></blockquote><blockquote type="cite"><br></blockquote><br>_______________________________________________<br>infinispan-dev mailing list<br><a href="mailto:infinispan-dev@lists.jboss.org">infinispan-dev@lists.jboss.org</a><br>https://lists.jboss.org/mailman/listinfo/infinispan-dev</div></blockquote></div><br><div>
<div><div>--</div><div>Manik Surtani</div><div><a href="mailto:manik@jboss.org">manik@jboss.org</a></div><div><a href="http://twitter.com/maniksurtani">twitter.com/maniksurtani</a></div><div><br></div><div>Lead, Infinispan</div><div><a href="http://www.infinispan.org">http://www.infinispan.org</a></div><div><br></div></div><br class="Apple-interchange-newline">
</div>
<br></div></body></html>