Java SDK Problems
I've run into a few problems, specifically with the query class.
This is the code I'm using for reference:
Query q = new Query(); q.setLimit(10); q.setSkip(0); q.setGroup(true); //q.setGroup(true, 5); //q.setGroup(true,4); //q.setStale(Stale.OK);
If I call the setGroup(boolean), it works fine. However, if I am to call the setGroup(boolean, int), it sends the boolean to couchdb in quotes which errors out. Also, setStale is sending the stale value to couch in quotes, which is also causing an error.
If you want more details I can provide them, but it seems pretty simple. The boolean from setGroup with two parameters needs the quotes removed, and the stale type also needs the quotes removed. It may apply for others as well, but these are the few I've tried in initial testing.
Thanks!
The fix for this issue has just been merged into our latest code base. You can check it out from github at http://www.github.com/dustin/java-memcached-client or if you would like I can build a jar for you and email it to you. If you would like it emailed to you then you can either post you email address on this thread or email info@couchbase.com asking for the latest java jar. Also add a line that says to forward the email to Mike Wiederhold.
Thanks for the feedback. You are correct about these issue and I have filed a bug for this issue (http://www.couchbase.org/issues/browse/SPY-17). I will fix it later today and will notify you in this thread when the code has made it through review.