Several times, I wanted the data structure to look like an SQL table where you can select different fields and several fields. Like implementing SQL in memory, except that I do not want to store this many objects in the data structure.
I also require the object to be serializable using standard Java tools.
I did this before with a few hash tables or custom hash keys, but it ended up with a lot of code and a very specific problem.
I also used Groovy with its closing ability and gpath to help, but I do not always have it available (different projects).
EDIT: I think my problem is more likely related to the problem of traversing / selecting an object. Here are some interesting projects:
However, the drawback of most of these projects is that they are much slower than accessing objects directly (uneven receiver / setter) and, of course, slower than the index (hash).
java sql data-structures
Adam gent
source share