public String getKeysAsJson() { if (keys == null) { return "{\"keys\":[]}"; } return keys.toJson(mapper); }
/** * For multiple-key queries (as of CouchDB 0.9). Keys will be JSON-encoded. * * @param keyList a list of Object, will be JSON encoded according to each element's type. * @return the view query for chained calls */ public ViewQuery keys(Collection<?> keyList) { reset(); keys = Keys.of(keyList); return this; }