I'm having problem when inserting Serializable keys of different type in a
MVStore's map. (i'm using version 1.3.176)
// create a concurrent map backed with a file
*String tempDir = System.getProperty("java.io.tmpdir");String filename =
UUID.randomUUID().toString();String path = tempDir + File.separator +
filename;Builder<Serializable, Object> mapBuilder = new
MVMapConcurrent.Builder<Serializable,
Object>();MVMapConcurrent<Serializable, Object> map = db.openMap("myMap",
mapBuilder);*
// inserting keys
*String key = UUID.randomUUID().toString();map.put(key, new Object());*
// composed key is two field class (a Serialisable and a String), it
implements serializable
*ComposedKey key11 = new ComposedKey(key, "string1");map.put(key11,
"sssss");ComposedKey key12 = new ComposedKey(key, "string2");map.put(key12,
new Integer(2));*
now I got a null when doing: map.get(key)
When debugging I found the key in the map, but cannot understand why it
does return null (with the binary search)
Also, when I insert a new entry (as follows) I don't key null but the
previously inserted value:
*UUID key1 = UUID.randomUUID();map.put(key1, new Object());*
--
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 http://groups.google.com/group/h2-database.
For more options, visit https://groups.google.com/d/optout.