You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ignite.apache.org by captcha <ha...@gmail.com> on 2019/10/10 20:43:34 UTC
REST API: passing custom POJOs
Hi Ignite Users,
For the REST API, is that possible to pass custom POJO objects? An example
use case:
Let's say I have a Person class:
class Person {
String name;
UUID id;
Location location;
}
Class Location {
long lat;
long long;
}
Let's say I cache some Person objects in the Ignite cluster, keyed on their
UUIDs. Now I want to pass in a Location object and a List of Person UUIDs
and then return the distance between the given location and each person in
the give list.
This requires passing POJOs to and back from Ignite compute gird. Is it
possible to use the REST API to do this? If not, what's the recommended way
for this? Are there any examples I could check?
Thanks.
--
Sent from: http://apache-ignite-users.70518.x6.nabble.com/