Several times I have wanted a data structure that is similar to a SQL Table where you can select on various fields and multiple fields. Similar to an in memory SQL implementation except that I don't want to store that many objects in the data structure.
I also require the object to be serializable through standard Java means.
I have done this before with multiple hash tables or custom hash keys but it ended up being a lot of code and very specific the problem.
I have also used Groovy with its closure ability and gpath to help but I don't always have it available (different projects).
EDIT: I think my problem is more of an object traversal/selection problem Here are some interesting projects:
However the downside to most of these projects is that they are much slower than accessing the objects directly (non reflection getter/setter) and definitely slower than an index (hash).
JavaDB and HSQLDB, among others, have fully in-memory databases.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With