ignite-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Vladimir Ozerov <voze...@gridgain.com>
Subject Re: general question
Date Mon, 13 Feb 2017 08:20:28 GMT
Please have a look at BinarySchema and it's usages. Essentially this is a
fingerprint of object fields in the order they were serialized, represented
as [field name] -> [position] hash map. Consider and object with 3 fields -
A, B, C. There could be 6 different schemas for it: [A, B, C], [A, C, B],
[B, A, C], [B, C, A]. [C, A, B], [C, B, A].

We use schemas to achieve O(1) field lookup time.

On Mon, Feb 13, 2017 at 11:05 AM, ALEKSEY KUZNETSOV <
alkuznetsov.sb@gmail.com> wrote:

> What is schema in your context?
>
> пн, 13 февр. 2017 г. в 10:50, Vladimir Ozerov <vozerov@gridgain.com>:
>
> > Alex,
> >
> > FieldAccessor stores field positions for the given schema to allow for
> fast
> > field value lookup.
> >
> > On Fri, Feb 10, 2017 at 7:06 PM, ALEKSEY KUZNETSOV <
> > alkuznetsov.sb@gmail.com
> > > wrote:
> >
> > > Guys, i have a question.Why do we store fields position information in
> > > FieldAccessor before hashcode evaluation? Test example is in
> > > : org.apache.ignite.internal.binary.BinaryFieldIdentityResolverSel
> > > fTest#testHashCode
> > > --
> > >
> > > *Best Regards,*
> > >
> > > *Kuznetsov Aleksey*
> > >
> >
> --
>
> *Best Regards,*
>
> *Kuznetsov Aleksey*
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message