Re: All BinaryObjects created by BinaryObjectBuilder stored at the same partition by default

2016-08-08 Thread Dmitriy Setrakyan
> > > >> >>> Good point, however, currently there's no way to > > > > > distinguish > > > > > > > > hash > > > > > > > > > > code > > > > > > > > > > >> >>> of

Re: All BinaryObjects created by BinaryObjectBuilder stored at the same partition by default

2016-08-08 Thread Sergi Vladykin
gt; >> >>> - Alex > > > > > > > > > >> >>> > > > > > > > > > >> >>> 2016-08-02 9:47 GMT+03:00 Dmitriy Setrakyan < > > > > > > > > dsetrak...@apache.org > > > > >

Re: All BinaryObjects created by BinaryObjectBuilder stored at the same partition by default

2016-08-08 Thread Alexey Goncharuk
wrote: > > > > > > > > >> >>>> > > > > > > > > >> >>>>> Andrey, > > > > > > > > >> >>>>> > > > > > > > > >> >>>>> The question is whe

Re: All BinaryObjects created by BinaryObjectBuilder stored at the same partition by default

2016-08-08 Thread Vladimir Ozerov
. I doubt we > > can > > > > > > print a > > > > > > > >> >> warning > > > > > > > >> >>>>> when calling *BinaryObjectBuilder.build() *method, > > because > > > > an > > > > > > > object > > > > > > > >> >>>&

Re: All BinaryObjects created by BinaryObjectBuilder stored at the same partition by default

2016-08-07 Thread Dmitriy Setrakyan
; > > >> >>>> hashCode ends up on a put or read operation in cache. > > > > > > >> >>>> > > > > > > >> >>>> > > > > > > >> >>>>> On Tue, Aug 2, 201

Re: All BinaryObjects created by BinaryObjectBuilder stored at the same partition by default

2016-08-06 Thread Sergi Vladykin
; >>>>>> I think we also should print some warning in case when > > > > hashCode() > > > > > >> >> wasn't > > > > > >> >>>>>> called on BinaryObject e

Re: All BinaryObjects created by BinaryObjectBuilder stored at the same partition by default

2016-08-06 Thread Alexander Paschenko
, Aug 2, 2016 at 2:20 AM, Dmitriy Setrakyan < > > > > >> >> dsetrak...@apache.org > > > > >> >>>>>> > > > > >> >>>>>> wrote: > > > > >> >>>>>> > >

Re: All BinaryObjects created by BinaryObjectBuilder stored at the same partition by default

2016-08-06 Thread Dmitriy Setrakyan
t; >> >>>>>>> On Mon, Aug 1, 2016 at 10:01 AM, Alexey Goncharuk < > > > >> >>>>>>> alexey.goncha...@gmail.com> wrote: > > > >> >>>>>>> > > > >> >>>>>>>> Dmitriy, > > > >> >>>>>>>> > &

Re: All BinaryObjects created by BinaryObjectBuilder stored at the same partition by default

2016-08-06 Thread Sergi Vladykin
> > >> >>>>>>> want > > >> >>>>>>>> it to be specified explicitly in INSERT statement? > > >> >>>>>>>> > > >> >&g

Re: All BinaryObjects created by BinaryObjectBuilder stored at the same partition by default

2016-08-05 Thread Dmitriy Setrakyan
tionally we should allow to specify hashCode as part > of > >> the > >> >>>>>>> INSERT statement. However, if it is not specified, we should > >> >> calculate > >> >>>>> it

Re: All BinaryObjects created by BinaryObjectBuilder stored at the same partition by default

2016-08-05 Thread Alexander Paschenko
gt; >>>>>>> >> >>>>>>> >> >>>>>>>> >> >>>>>>>> 2016-08-01 19:47 GMT+03:00 Dmitriy Setrakyan < >> dsetrak...@apache.org >> >>>>>> : >> >>>>>&

Re: All BinaryObjects created by BinaryObjectBuilder stored at the same partition by default

2016-08-02 Thread Dmitriy Setrakyan
t;>> > >>>>>>>> > >>>>>>>> 2016-08-01 19:47 GMT+03:00 Dmitriy Setrakyan < > dsetrak...@apache.org > >>>>>> : > >>>>>>>> > >>>>>>>>> Alex, > >>>>>>>>>

Re: All BinaryObjects created by BinaryObjectBuilder stored at the same partition by default

2016-08-02 Thread Denis Magda
gt;>>>>>> >>>>>>>>> In your case, why not just explicitly set hashcode every time you >>>>>>> create >>>>>>>> an >>>>>>>>> object? There is BinaryObjectBuilder.hashCode(...) method. >>>>>>&

Re: All BinaryObjects created by BinaryObjectBuilder stored at the same partition by default

2016-08-02 Thread Vladimir Ozerov
>>> D. > >>>>>>> > >>>>>>> On Mon, Aug 1, 2016 at 7:42 AM, al.psc < > >>>>> alexander.a.pasche...@gmail.com> > >>>>>>> wrote: > >>>>>>> > >>>>>>>>

Re: All BinaryObjects created by BinaryObjectBuilder stored at the same partition by default

2016-08-02 Thread Denis Magda
gt;>>> >>>>>>>> It seems like this problem has become an important one once >>> again. >>>>>>>> In the course of working on >>>>>>>> https://issues.apache.org/jira/browse/IGNITE-2294 (DML support) >>&g

Re: All BinaryObjects created by BinaryObjectBuilder stored at the same partition by default

2016-08-02 Thread Andrey Gura
t; > > > >> > > > > > Guys, > >> > > > > > > >> > > > > > It seems like this problem has become an important one once > >> again. > >> > > > > > In the course of working on > >> > > > > > https://issues.apache.org/jira/browse/IGNITE-2294 (

Re: All BinaryObjects created by BinaryObjectBuilder stored at the same partition by default

2016-08-02 Thread Alexander Paschenko
gt; and put it to cache, without adequate hash code it won't be stored >> > > > properly. >> > > > Currently SQL MERGE works simply by deserializing newly built object, >> > but >> > > > it's obviously wrong and is just a workaround rather a solution. >> > > > Has anyone come with possible design proposals for this problem's >> > > solution? >> > > > >> > > > Thanks. >> > > > >> > > > - Alex >> > > > >> > > > >> > > > >> > > > -- >> > > > View this message in context: >> > > > >> > > >> > >> http://apache-ignite-developers.2346864.n4.nabble.com/All-BinaryObjects-created-by-BinaryObjectBuilder-stored-at-the-same-partition-by-default-tp8042p10304.html >> > > > Sent from the Apache Ignite Developers mailing list archive at >> > > Nabble.com. >> > > > >> > > >> > >>

Re: All BinaryObjects created by BinaryObjectBuilder stored at the same partition by default

2016-08-02 Thread Alexey Goncharuk
; > Currently SQL MERGE works simply by deserializing newly built object, > > but > > > > it's obviously wrong and is just a workaround rather a solution. > > > > Has anyone come with possible design proposals for this problem's > > > solution? > > > > > > > > Thanks. > > > > > > > > - Alex > > > > > > > > > > > > > > > > -- > > > > View this message in context: > > > > > > > > > > http://apache-ignite-developers.2346864.n4.nabble.com/All-BinaryObjects-created-by-BinaryObjectBuilder-stored-at-the-same-partition-by-default-tp8042p10304.html > > > > Sent from the Apache Ignite Developers mailing list archive at > > > Nabble.com. > > > > > > > > > >

Re: All BinaryObjects created by BinaryObjectBuilder stored at the same partition by default

2016-08-02 Thread Alexander Paschenko
; > > > > > to support binary marshaller. And, although we can build just >> > > > > BinaryObject >> > > > > > and put it to cache, without adequate hash code it won't be >> stored >> > > > > > properly. >> > > > > > Currently SQL MERGE works simply by deserializing newly built >> > object, >> > > > but >> > > > > > it's obviously wrong and is just a workaround rather a solution. >> > > > > > Has anyone come with possible design proposals for this problem's >> > > > > solution? >> > > > > > >> > > > > > Thanks. >> > > > > > >> > > > > > - Alex >> > > > > > >> > > > > > >> > > > > > >> > > > > > -- >> > > > > > View this message in context: >> > > > > > >> > > > > >> > > > >> > > >> > >> http://apache-ignite-developers.2346864.n4.nabble.com/All-BinaryObjects-created-by-BinaryObjectBuilder-stored-at-the-same-partition-by-default-tp8042p10304.html >> > > > > > Sent from the Apache Ignite Developers mailing list archive at >> > > > > Nabble.com. >> > > > > > >> > > > > >> > > > >> > > >> > >> > >> > >> > -- >> > Andrey Gura >> > GridGain Systems, Inc. >> > www.gridgain.com >> > >>

Re: All BinaryObjects created by BinaryObjectBuilder stored at the same partition by default

2016-08-01 Thread Dmitriy Setrakyan
294 (DML support) > > > > there's > > > > > > need > > > > > > to support binary marshaller. And, although we can build just > > > > > BinaryObject > > > > > > and put it to cache, without adequate hash code it won't be > stored

Re: All BinaryObjects created by BinaryObjectBuilder stored at the same partition by default

2016-08-01 Thread Vladimir Ozerov
gt; > > BinaryObject > > > > > and put it to cache, without adequate hash code it won't be stored > > > > > properly. > > > > > Currently SQL MERGE works simply by deserializing newly built > object, > > > but > > > > > it's obviously

Re: All BinaryObjects created by BinaryObjectBuilder stored at the same partition by default

2016-08-01 Thread Andrey Gura
GE works simply by deserializing newly built object, > > but > > > > it's obviously wrong and is just a workaround rather a solution. > > > > Has anyone come with possible design proposals for this problem's > > > solution? > > > > > > > > Thanks

Re: All BinaryObjects created by BinaryObjectBuilder stored at the same partition by default

2016-08-01 Thread Dmitriy Setrakyan
tion. > > > Has anyone come with possible design proposals for this problem's > > solution? > > > > > > Thanks. > > > > > > - Alex > > > > > > > > > > > > -- > > > View this message in context: > > > > > > http://apache-ignite-developers.2346864.n4.nabble.com/All-BinaryObjects-created-by-BinaryObjectBuilder-stored-at-the-same-partition-by-default-tp8042p10304.html > > > Sent from the Apache Ignite Developers mailing list archive at > > Nabble.com. > > > > > >

Re: All BinaryObjects created by BinaryObjectBuilder stored at the same partition by default

2016-08-01 Thread Alexey Goncharuk
works simply by deserializing newly built object, but > > it's obviously wrong and is just a workaround rather a solution. > > Has anyone come with possible design proposals for this problem's > solution? > > > > Thanks. > > > > - Alex > > > >

Re: All BinaryObjects created by BinaryObjectBuilder stored at the same partition by default

2016-08-01 Thread Dmitriy Setrakyan
his message in context: > http://apache-ignite-developers.2346864.n4.nabble.com/All-BinaryObjects-created-by-BinaryObjectBuilder-stored-at-the-same-partition-by-default-tp8042p10304.html > Sent from the Apache Ignite Developers mailing list archive at Nabble.com. >

RE: All BinaryObjects created by BinaryObjectBuilder stored at the same partition by default

2016-08-01 Thread al.psc
s message in context: http://apache-ignite-developers.2346864.n4.nabble.com/All-BinaryObjects-created-by-BinaryObjectBuilder-stored-at-the-same-partition-by-default-tp8042p10304.html Sent from the Apache Ignite Developers mailing list archive at Nabble.com.

RE: All BinaryObjects created by BinaryObjectBuilder stored at the same partition by default

2016-03-24 Thread Andrey Kornev
naryObjects created by BinaryObjectBuilder stored at the > same partition by default > From: akuznet...@gridgain.com > To: dev@ignite.apache.org > > As for JdbcPojoStore it has an option to configure "hasher". > > On Thu, Mar 24, 2016 at 5:20 PM, Denis Magda wrote

RE: All BinaryObjects created by BinaryObjectBuilder stored at the same partition by default

2016-03-24 Thread Andrey Kornev
naryObjects created by BinaryObjectBuilder stored at the > same partition by default > From: akuznet...@gridgain.com > To: dev@ignite.apache.org > > As for JdbcPojoStore it has an option to configure "hasher". > > On Thu, Mar 24, 2016 at 5:20 PM, Denis Magda wrote

Re: All BinaryObjects created by BinaryObjectBuilder stored at the same partition by default

2016-03-24 Thread Alexey Kuznetsov
As for JdbcPojoStore it has an option to configure "hasher". On Thu, Mar 24, 2016 at 5:20 PM, Denis Magda wrote: > +1 for the improvement of JavaDoc because the problem arises only when > BinaryObjects are used as keys. > Readme.io already has a warning regarding this > > https://apacheignite.re

Re: All BinaryObjects created by BinaryObjectBuilder stored at the same partition by default

2016-03-24 Thread Denis Magda
+1 for the improvement of JavaDoc because the problem arises only when BinaryObjects are used as keys. Readme.io already has a warning regarding this https://apacheignite.readme.io/docs/binary-marshaller#modifying-binary-objects-using-binaryobjectbuilder -- Denis On 3/24/2016 12:38 PM, Vladimir

Re: All BinaryObjects created by BinaryObjectBuilder stored at the same partition by default

2016-03-24 Thread Vladimir Ozerov
When object has been built, there is no way to know, whether hash code was set or not. Zero could be real hash code, as well as not set hash code. Random is not an option. Any kind of automatic generation is not an option as well, because we do not know, how hash code of real class instance is cal

Re: All BinaryObjects created by BinaryObjectBuilder stored at the same partition by default

2016-03-24 Thread Yakov Zhdanov
Random hash code is not an option. I would suggest cache throws exception on update if binary object created with builder does not have hash code initialized. Vladimir, can we somehow make it possible to know whether hash code was or was not inited on a binary object? --Yakov 2016-03-24 11:43 G

All BinaryObjects created by BinaryObjectBuilder stored at the same partition by default

2016-03-24 Thread Anton Vinogradov
Hello, I found that every BinaryObject created by BinaryObjectBuilder has hashcode == 0 by default. This can cause situation that all objects created by code similar to: *BinaryObject key = builder.setField("id", i).build();* *streamer.addData(key, key);* will be stored at one partition and this