Query q = new Query ();
q.parse (yourQueryText);
List results = q.execute (yourObjects);
It should be noted that the
parse
and execute
are separate operations. This is to allow re-use of the Query object. For detailed usage examples see the examples page.