mongodb/src/main/java/site/ycsb/db/OptionsSupport.java [108:142]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
            + readPreferenceType + "' will be ignored. "
            + "Must be one of [ primary | primary_preferred | "
            + "secondary | secondary_preferred | nearest ]");
      }
    }

    return result;
  }

  /**
   * Adds an option to the url if it does not already contain the option.
   *
   * @param url
   *          The URL to append the options to.
   * @param name
   *          The name of the option.
   * @param value
   *          The value for the option.
   * @return The updated URL.
   */
  private static String addUrlOption(String url, String name, String value) {
    String fullName = name + "=";
    if (!url.contains(fullName)) {
      if (url.contains("?")) {
        return url + "&" + fullName + value;
      }
      return url + "?" + fullName + value;
    }
    return url;
  }

  /**
   * Hidden Constructor.
   */
  private OptionsSupport() {
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



mongodbreactivestreams/src/main/java/site/ycsb/db/OptionsSupport.java [111:145]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
            + readPreferenceType + "' will be ignored. "
            + "Must be one of [ primary | primary_preferred | "
            + "secondary | secondary_preferred | nearest ]");
      }
    }

    return result;
  }

  /**
   * Adds an option to the url if it does not already contain the option.
   *
   * @param url
   *          The URL to append the options to.
   * @param name
   *          The name of the option.
   * @param value
   *          The value for the option.
   * @return The updated URL.
   */
  private static String addUrlOption(String url, String name, String value) {
    String fullName = name + "=";
    if (!url.contains(fullName)) {
      if (url.contains("?")) {
        return url + "&" + fullName + value;
      }
      return url + "?" + fullName + value;
    }
    return url;
  }

  /**
   * Hidden Constructor.
   */
  private OptionsSupport() {
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



