Re: Example of SQL query

2018-05-10 Thread Alexey Kuznetsov
Denis, If this will be awailable in ignite-2.5 Why link is pointing to 2.4 ? On Thu, May 10, 2018 at 9:53 PM, Denis Magda wrote: > Guys, > > Starting with Ignite 2.5 it will be possible to use other types of keys in > addition to String: https://apacheignite.readme.io/v2.4/docs/rest-api- > 25#

Re: Example of SQL query

2018-05-10 Thread Denis Magda
Guys, Starting with Ignite 2.5 it will be possible to use other types of keys in addition to String: https://apacheignite.readme.io/v2.4/docs/rest-api-25#section-data-types -- Denis On Thu, May 10, 2018 at 4:39 AM, Ilya Kasnacheev wrote: > I didn't exactly get 1), but I'm sure your best bet is

Re: Example of SQL query

2018-05-10 Thread Ilya Kasnacheev
I didn't exactly get 1), but I'm sure your best bet is to use keyConfiguration (CacheKeyConfiguration) in this case to set affinity key. Otherwise you're at risk of getting "incompatible affinity keys" error. BTW isn't it a better topic for dev@? Care to crosspost? Regards, -- Ilya Kasnacheev

Re: Example of SQL query

2018-05-09 Thread aealexsandrov
Hi again, We already discussed about it recently. At the moment some things works incorrect in 2.4: 1)Rest API only support String as key and value. And looks like you can't use affinity key on strings for the same issue. But if you can setup it using AffinityKeyMapper anotation: public stat

Example of SQL query

2018-05-08 Thread michael
Can you someone give an example of a cache in memory being queried via rest. Here is a simple person class (cut down from example code): Person.java and a populate it: PersonTest.java