added query rowlimit support to the Java API