Java Library to query Collections/Objects
collections, java
Solution
I have used CqEngine successfuly in my company (https://code.google.com/p/cqengine/)
When you instantiate a collection, you can easily define a set of indexes. This is much more powerful than predicates.
Also, when you will perform a search on your collection, CqEngine will not iterate on the whole collection then check if each record matches with the predicate. Instead, it will directly find the matching records in a Map like data structure. Hence you will have excellent performance.
Problem
I am looking for Java Libraries that will allow me to query collections. I have stumbled across jFilter an JoSql. However it seems that JoSql has been inactive since 2010 and has had only 2 releases. jFilter seems to be fairly new and hasn't had any new releases since last year. The small number of search result, when googling either of them, suggests to me that they are not used widely. Have you got any suggestions regarding these libraries, or know of more active once?