You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ignite.apache.org by the_palakkaran <ji...@suntecsbs.com> on 2018/06/04 12:10:04 UTC

While using Externalizable, possible to do SQLFieldsQuery, but not cache.get()

Hi,

I have both my Key and Model classes implementing Externalizable. I am able
to put data into it correctly and also to do SQLFieldsQuery on it
successfully. But when I use the same cache object to get value by passing a
Key, it always returns null.

Why does this happen?



--
Sent from: http://apache-ignite-users.70518.x6.nabble.com/

Re: While using Externalizable, possible to do SQLFieldsQuery, but not cache.get()

Posted by the_palakkaran <ji...@suntecsbs.com>.
Sorry, the problem was that I had a wrong hash code implementation. Now when
I implemented it correctly, this works fine.



--
Sent from: http://apache-ignite-users.70518.x6.nabble.com/

Re: While using Externalizable, possible to do SQLFieldsQuery, but not cache.get()

Posted by Evgenii Zhuravlev <e....@gmail.com>.
Hi,

Can you share the full reproducer?

Thanks,
Evgenii

2018-06-04 15:10 GMT+03:00 the_palakkaran <ji...@suntecsbs.com>:

> Hi,
>
> I have both my Key and Model classes implementing Externalizable. I am able
> to put data into it correctly and also to do SQLFieldsQuery on it
> successfully. But when I use the same cache object to get value by passing
> a
> Key, it always returns null.
>
> Why does this happen?
>
>
>
> --
> Sent from: http://apache-ignite-users.70518.x6.nabble.com/
>