示例#1
0
 public String getKeysAsJson() {
   if (keys == null) {
     return "{\"keys\":[]}";
   }
   return keys.toJson(mapper);
 }
示例#2
0
 /**
  * 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;
 }