You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ignite.apache.org by Marco Colombo <in...@gmail.com> on 2017/06/06 08:12:42 UTC

Fully dynamic cache

Hi all,
I've a use case that requires a fully dynamic data structure.
What I'm trying to do is to do not have any java pojo class describing the
object stored in the cache, but full create the object based on user inputs.
I see that for these cases it is used the binary object, but all examples
that I've found starts from an already defined class.

It is possible to dynamically create an object and then performing sql
queries on it?
Is there any example?

Thanks!

Re: Fully dynamic cache

Posted by dkarachentsev <dk...@gridgain.com>.
Hi,

You can dynamically create and change binary objects with
BinaryObjectBuilder [1], but fields that you want to query must be specified
on node startup at least with QueryEntity [2], but altering internal query
tables at runtime is not possible for now.

[1]
https://apacheignite.readme.io/v2.0/docs/binary-marshaller#section-modifying-binary-objects-using-binaryobjectbuilder
[2]
https://apacheignite.readme.io/v2.0/docs/indexes#queryentity-based-configuration

Thanks!
-Dmitry



--
View this message in context: http://apache-ignite-users.70518.x6.nabble.com/Fully-dynamic-cache-tp13397p13426.html
Sent from the Apache Ignite Users mailing list archive at Nabble.com.