Hi,

The easiest example is to use a array as the key (array of objects, array
of strings):

        MVStore store = new MVStore.Builder().open();
        MVMap<Object[], String> map = store.openMap("test");
        map.put(new Object[]{1, "A"}, "Hello");
        map.put(new Object[]{2, "B"}, "World");
        System.out.println(map.get(new Object[]{2, "B"}));
        store.close();

Regards,
Thomas


On Sat, Jan 16, 2016 at 6:29 AM, Lenny Karpel <[email protected]>
wrote:

> Could someone provide an example using MVStore/MVMap with a composite key.
> Thanks.
>
> --
> You received this message because you are subscribed to the Google Groups
> "H2 Database" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To post to this group, send email to [email protected].
> Visit this group at https://groups.google.com/group/h2-database.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups "H2 
Database" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/h2-database.
For more options, visit https://groups.google.com/d/optout.

Reply via email to