Re: Custom (de)serialization for a single field

2016-09-13 Thread vkulichenko
Hi Josh,

I think Binarylizable is the right choice. But you're right that you will
have to write all the fields manually in this case. This works similar to
Externalizable in plain Java serialization.

-Val



--
View this message in context: 
http://apache-ignite-users.70518.x6.nabble.com/Custom-de-serialization-for-a-single-field-tp7710p7718.html
Sent from the Apache Ignite Users mailing list archive at Nabble.com.


Re: Custom (de)serialization for a single field

2016-09-13 Thread Vladislav Pyatkov
Hello Josh,

I think  BinarySerializer will be matched.
Look at the article[1] and javadoc[2].

[1]:
http://apacheignite.gridgain.org/docs/binary-marshaller#configuring-binary-objects
[2]:
https://ignite.apache.org/releases/1.5.0.final/javadoc/org/apache/ignite/binary/BinarySerializer.html


On Tue, Sep 13, 2016 at 6:26 PM, Josh Cummings 
wrote:

> I have an object I need to cache which has more than 100 fields. One
> particular field needs some custom handling when being (de)serialized. I've
> considered implementing Binarylizable; however, I don't care to manage all
> of the fields via the read and write binary methods.
>
> Where should I look in the api to configure custom (de)serialization for a
> single field?
>
> --
>
> *JOSH CUMMINGS*
>
> Principal Engineer
>
> [image: Workfront] <https://www.workfront.com/>
>
> *O*  801.477.1234  |  *M*  8015562751
>
> joshcummi...@workfront.com | www.workfront.com
> Address <https://www.workfront.com/contact-us/>  |  Twitter
> <http://twitter.com/Workfront_Inc>  |  LinkedIn
> <http://www.linkedin.com/company/48453>  |  Facebook
> <http://www.facebook.com/workfront>
>
> [image: Workfront] <https://www.workfront.com/email-promo>
>



-- 
Vladislav Pyatkov


Custom (de)serialization for a single field

2016-09-13 Thread Josh Cummings
I have an object I need to cache which has more than 100 fields. One
particular field needs some custom handling when being (de)serialized. I've
considered implementing Binarylizable; however, I don't care to manage all
of the fields via the read and write binary methods.

Where should I look in the api to configure custom (de)serialization for a
single field?

-- 

*JOSH CUMMINGS*

Principal Engineer

[image: Workfront] <https://www.workfront.com/>

*O*  801.477.1234  |  *M*  8015562751

joshcummi...@workfront.com | www.workfront.com
Address <https://www.workfront.com/contact-us/>  |  Twitter
<http://twitter.com/Workfront_Inc>  |  LinkedIn
<http://www.linkedin.com/company/48453>  |  Facebook
<http://www.facebook.com/workfront>

[image: Workfront] <https://www.workfront.com/email-promo>