code: @InterfaceAudience.Public
      public QueryEnumerator run() throws CouchbaseLiteException {
          List<Long> outSequence = new ArrayList<Long>();
          String viewName = (view != null) ? view.getName() : null;
          List<QueryRow> rows = database.queryViewNamed(viewName, getQueryOptions(), outSequence);
          lastSequence = outSequence.get(0);
          return new QueryEnumerator(database, rows, lastSequence);
      }
docs: Sends the query to the server and returns an enumerator over the result rows (Synchronous).
  If the query fails, this method returns nil and sets the query's .error property.