ignite-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sergey Kozlov <skoz...@gridgain.com>
Subject Re: Add key type detection for REST HTTP GET command
Date Mon, 20 Jun 2016 10:31:45 GMT
Hi Alexey.

It's a good idea! Now I'm facing the issue when load the data via java code
(Long, Person) but REST Get/GetAll returns null for loaded keys. I suppose
that the reason is wrong mapping of the key passed to REST command.

On Mon, Jun 20, 2016 at 1:20 PM, Alexey Kuznetsov <akuznetsov@gridgain.com>
wrote:

> Hi, All!
>
> It seems that in current implementation (
> https://apacheignite.readme.io/docs/rest-api#get)
> GET command could work only with String keys.
>
> How about to add optional parameter "keyType" and implement support for
> common built-in types such as Integer, Long, UUID,... and user classes that
> a valid JavaBeans?
>
> Sample: http://host:port
> /ignite?cmd=get&key=1&cacheName=myCache&keyType=Long
>
> Thoughts?
>
> --
> Alexey Kuznetsov
>



-- 
Sergey Kozlov
GridGain Systems
www.gridgain.com

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