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.
www.un.org/Depts/DGACM/index_spanish.htm 我也要求通过标准的 Java手段使物体具有序列性。
我以前曾用多个散列表格或习俗散列钥匙做过这项工作,但最后是许多法典和非常具体的问题。
我也利用了格罗维尼的封闭能力和幽灵来提供帮助,但我并不总是能够提供(不同的项目)。
EDIT: I think my problem is more of an object traversal/selection problem Here are some interesting projects:
- http://josql.sourceforge.net/
- http://homepages.mcs.vuw.ac.nz/~djp/JQL/
- http://today.java.net/pub/a/today/2006/08/03/java-object-querying-using-jxpath.html
- http://code.google.com/p/lambdaj/ (I used this in the past and it was.... slow...)
- http://jedi.codehaus.org/ Jedi
然而,大多数这些项目的倒数是,它们比直接获得目标(非反射/优等)要慢得多,而且明显低于指数(hash)。