[infinispan-dev] storeAsBinary: serialize keys, values, or both?

Manik Surtani manik at jboss.org
Thu May 12 11:30:28 EDT 2011


On 12 May 2011, at 16:06, Manik Surtani wrote:

> 
> On 11 May 2011, at 18:27, Sanne Grinovero wrote:
> 
>> I'm also wondering how the equals is performed on a serialized key; I
>> assume they are compared as byte[], but if that's the case that should
>> be clearly documented as it would ignore any custom equals()
>> implementation.
> 
> Your assumption is correct:
> 
> https://github.com/infinispan/infinispan/blob/master/core/src/main/java/org/infinispan/marshall/MarshalledValue.java#L176
> 
> Good point that it needs to be documented clearly.  Doing it now.

Done: 

http://community.jboss.org/wiki/Marshalling#Equality_Considerations

--
Manik Surtani
manik at jboss.org
twitter.com/maniksurtani

Lead, Infinispan
http://www.infinispan.org



-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/infinispan-dev/attachments/20110512/de246d3f/attachment.html 


More information about the infinispan-dev mailing list