I have created a sql ability on Arrays using a class I created called ArraySQL that is part of the open source formatteddataset api. The api also has the abilility to turn a ResultSet into an Object[][].
http://www.fdsapi.com As far as speed goes it is quite fast.
Also, you can use JOSQL to query Collections, using a sql like syntax.
http://josql.sourceforge.net/ Both, are useful utilities to have in your arsenal.