Hi, Descending iteration is not yet implemented.
If performance is not the most important part, it could be emulated easily (with a _lot_ less code) using MVMap.getKeyIndex(K) and getKey(long). Possibly you also need MVMap.openVersion. That way, iterating over n entries would then be O(n log n) instead of O(n). If performance is very important, it would need to be implemented separately. It would be a nice addition, patches are welcome. Regards, Thomas On Wednesday, April 1, 2015, Jeremy Friesen <[email protected]> wrote: > I'm evaluating MVStore for a database project and so far I'm very pleased. > Performance is great and I greatly appreciate being able to grab a hot copy > via simple file copy at any time. > > I have one question about iterating a range of keys. Say I have a map with > Date keys, and I wish to iterate a range of keys between two dates. It > seems like getting a Cursor is the most efficient way of iterating a range, > but it seems to only go in one direction, and I need to be able to order my > query in either ascending or descending order. Should I use MVMap.higherKey > and MVMap.lowerKey to be able to iterate in either direction? > > 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] > <javascript:_e(%7B%7D,'cvml','h2-database%[email protected]');> > . > To post to this group, send email to [email protected] > <javascript:_e(%7B%7D,'cvml','[email protected]');>. > Visit this group at http://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 http://groups.google.com/group/h2-database. For more options, visit https://groups.google.com/d/optout.
