code: public QueryResult objectQuery(String tableName,
                                     String queryText,
                                     String fieldNames,
                                     int    pageSize,
                                     String afterObjID,
                                     String sortOrder) {
          Map<String, String> params = new HashMap<>();
          if (!Utils.isEmpty(queryText)) {
              params.put("q", queryText);
          }
          if (!Utils.isEmpty(fieldNames)) {
              params.put("f", fieldNames);
          }
          if (pageSize >= 0) {
              params.put("s", Integer.toString(pageSize));
          }
          if (!Utils.isEmpty(afterObjID)) {
              params.put("g", afterObjID);
          }
          if (!Utils.isEmpty(sortOrder)) {
              params.put("o", sortOrder);
          }
          return objectQuery(tableName, params);
      }
docs: Perform an object query for the given table and query parameters. This is a
  convenience method for Spider applications that bundles the given parameters into
  a Map<String,String> and calls {@link #objectQuery(String, Map)}. String parameters
  should *not* be URL-encoded. Optional, unused parameters can be null or empty (for
  strings) or -1 (for integers).
  
  @param tableName     Name of table to query. Must belong to this session's
  application.
  @param queryText     Query expression ('q') parameter. Required.
  @param fieldNames    Comma-separated field names to retrieve. Optional.
  @param pageSize      Page size ('s'). Optional.
  @param afterObjID    Continue-after continuation token ('g'). Optional.
  @param sortOrder     Sort order parameter ('o'). Optional.
  @return              Query results as a {@link QueryResult} object.