You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ignite.apache.org by Shawn Du <sh...@neulion.com.cn> on 2017/01/12 01:27:24 UTC

答复: 答复: Efficient way to get partial data of a cache entry

Hi Val,

Thanks for your help. It works. But throw new issues.

RoaringBitmap bitmap = new RoaringBitmap();
bitmap.add(100);
BinaryObject bo = ignite.binary().toBinary(bitmap); // exception throw here.
Ignite can't build binary format for RoaringBitmap. I test java class, it
works. 

Please help. 
Thanks Shawn.

-----邮件原件-----
发件人: vkulichenko [mailto:valentin.kulichenko@gmail.com] 
发送时间: 2017年1月12日 5:42
收件人: user@ignite.apache.org
主题: Re: 答复: Efficient way to get partial data of a cache entry

Shawn,

BinaryObject always return another BinaryObject for your custom type,
because otherwise it would mean that you have classes and most likely there
is no reason to use BinaryObject and withKeepBinary in the first place.
However, you can always call BinaryObject.deserialize() to convert to
instance of your class.

-Val



--
View this message in context:
http://apache-ignite-users.70518.x6.nabble.com/Efficient-way-to-get-partial-
data-of-a-cache-entry-tp9965p10042.html
Sent from the Apache Ignite Users mailing list archive at Nabble.com.


Re: 答复: 答复: Efficient way to get partial data of a cache entry

Posted by vkulichenko <va...@gmail.com>.
What is the exception? Can you show the trace?

-Val



--
View this message in context: http://apache-ignite-users.70518.x6.nabble.com/Efficient-way-to-get-partial-data-of-a-cache-entry-tp9965p10047.html
Sent from the Apache Ignite Users mailing list archive at Nabble.com.