Re: [h2] MVMap similar to LinkedHashMap

2018-04-23 Thread ivan
but that taking up more memory... On Monday, April 23, 2018 at 2:07:42 PM UTC+8, Thomas Mueller Graf wrote: > > Hi, > > What about adding a second map with a counter as a key, and the key as the > value. So there are two maps: > > map 1: key: counter; value: your key > map 2: key: your key;

Re: [h2] MVMap similar to LinkedHashMap

2018-04-23 Thread Thomas Mueller Graf
Hi, What about adding a second map with a counter as a key, and the key as the value. So there are two maps: map 1: key: counter; value: your key map 2: key: your key; value: your value plus the counter from map 1 Regards, Thomas On Sun, Apr 22, 2018 at 8:46 PM, ivan

Re: [h2] MVMap similar to LinkedHashMap

2018-04-22 Thread ivan
oh? that great! do you have any sample? Thanks I found this but can't really understand how this work : MVRTreeMap r = s.openMap("data", new MVRTreeMap.Builder()); // add two key-value pairs // the first value is the key id (to make the key unique) // then the min x, max x, min y, max

Re: [h2] MVMap similar to LinkedHashMap

2018-04-21 Thread Noel Grandin
you can use ceiingKey(K) to match on the first part of the search key.​ -- 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 h2-database+unsubscr...@googlegroups.com.

Re: [h2] MVMap similar to LinkedHashMap

2018-04-21 Thread ivan
But that will effecte the search key .. -- 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 h2-database+unsubscr...@googlegroups.com. To post to this group, send

Re: [h2] MVMap similar to LinkedHashMap

2018-04-21 Thread Noel Grandin
you could probably get the same effect by adding a sequentially increasing id to the end of the key​ -- 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

Re: [h2] MVMap similar to LinkedHashMap

2018-04-21 Thread Noel Grandin
No​ -- 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 h2-database+unsubscr...@googlegroups.com. To post to this group, send email to h2-database@googlegroups.com.

[h2] MVMap similar to LinkedHashMap

2018-04-20 Thread ivan
Hi, Is it possible to turn of the sorting feature in MVMap and follow the insertion order? Thanks Ivan -- 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