code: private void onQuery()
      {
          try
          {
              _id = CouchDBConstants.URL_SEPARATOR + m.getSchema() + CouchDBConstants.URL_SEPARATOR + "_design/"
                      + m.getTableName() + "/_view/";
              _id = client.createQuery(interpreter, m, q, _id);
  
              if (!q.toString().isEmpty())
              {
                  q.append("&");
              }
              q.append("limit=" + 1);
          }
          catch (Exception e)
          {
  
          }
      }
docs: On query.