I am trying to set up the configuration for Voldemort key-value store. Now, I'd like to be able to store arbitrary hashmaps in it, but I haven't found the way to do so (or if it is possible).
According to the documentation I should use this syntax:
{"fname":"string", "lname":"string", "id":"int32", "emails":["string"]}
To indicate that I want to store a HashMap representation of a Java bean, but with constraints on allowed keys (only fname
,lname
,id
and emails
) and their types.
What I would need is to be able to store an arbitrary map like this:
{"name":"fred", "id":15}
or like this:
{"apples":"50$", "oranges":"15€"}
(Map values are meaningless, just an illustration of maps with different key names, and value types)
Is there a way to define a schema that would accept an arbitrary hashmap?