how to get BinaryMarshaller instance

classic Classic list List threaded Threaded
5 messages Options
shawn.du shawn.du
Reply | Threaded
Open this post in threaded view
|

how to get BinaryMarshaller instance

Hi,

I want to persist some data in binary, for I put cache in BinaryObject format like this:

BinaryObjectBuilder builder = ignite.binary().builder(typeName);
cache.put(key,builder.build());

how can I get or create BinaryMarshaller instance? 

Thanks
Shawn

shawn.du shawn.du
Reply | Threaded
Open this post in threaded view
|

Re: how to get BinaryMarshaller instance

get it. 

storeKeepBinary flag will help. 

Thanks
Shawn

On 02/8/2017 13:58[hidden email] wrote:
Hi,

I want to persist some data in binary, for I put cache in BinaryObject format like this:

BinaryObjectBuilder builder = ignite.binary().builder(typeName);
cache.put(key,builder.build());

how can I get or create BinaryMarshaller instance? 

Thanks
Shawn

Denis Magda-2 Denis Magda-2
Reply | Threaded
Open this post in threaded view
|

Binary objects and cache store

Cross-posting to the dev list.

Igniters, what if we make “storeKeepBinary” = true by default in Ignite 2.0? Presently, the user has to tweak the configuration manually.

Denis

On Feb 7, 2017, at 10:30 PM, shawn.du <[hidden email]> wrote:

get it. 

storeKeepBinary flag will help. 

Thanks
Shawn

On 02/8/2017 13:58[hidden email] wrote: 
Hi,

I want to persist some data in binary, for I put cache in BinaryObject format like this:

BinaryObjectBuilder builder = ignite.binary().builder(typeName);
cache.put(key,builder.build());

how can I get or create BinaryMarshaller instance? 

Thanks
Shawn

vkulichenko vkulichenko
Reply | Threaded
Open this post in threaded view
|

Re: Binary objects and cache store

+1

-Val

On Wed, Feb 8, 2017 at 4:57 PM, Denis Magda <[hidden email]> wrote:
Cross-posting to the dev list.

Igniters, what if we make “storeKeepBinary” = true by default in Ignite 2.0? Presently, the user has to tweak the configuration manually.

Denis

On Feb 7, 2017, at 10:30 PM, shawn.du <[hidden email]> wrote:

get it. 

storeKeepBinary flag will help. 

Thanks
Shawn

On 02/8/2017 13:58[hidden email] wrote: 
Hi,

I want to persist some data in binary, for I put cache in BinaryObject format like this:

BinaryObjectBuilder builder = ignite.binary().builder(typeName);
cache.put(key,builder.build());

how can I get or create BinaryMarshaller instance? 

Thanks
Shawn


dsetrakyan dsetrakyan
Reply | Threaded
Open this post in threaded view
|

Re: Binary objects and cache store

In reply to this post by Denis Magda-2


On Wed, Feb 8, 2017 at 4:57 PM, Denis Magda <[hidden email]> wrote:
Cross-posting to the dev list.

Igniters, what if we make “storeKeepBinary” = true by default in Ignite 2.0? Presently, the user has to tweak the configuration manually.


Makes sense to me.