params.put("sql", query);
params.put("key", new String[] { key });
params.put("partition", partition);
try {
HttpContent content = new StringHttpContent(JSONSerDe.ser(params));
HttpRequest request = requestFactory.buildPostRequest(new GenericUrl(
qNodes[(int) (Math.random() * qNodes.length)] + "/api/query/" + tablespace), content);
HttpResponse resp = request.execute();
return JSONSerDe.deSer(asString(resp.getContent()), QueryStatus.class);
} catch(JSONSerDeException e) {