/** * Constructs an {@link AlluxioURI} from components. * * @param scheme the scheme of the path. e.g. alluxio, hdfs, s3, file, null, etc * @param authority the authority of the path * @param path the path component of the URI. e.g. /abc/c.txt, /a b/c/c.txt * @param queryMap the (nullable) map of key/value pairs for the query component of the URI */ public AlluxioURI(String scheme, Authority authority, String path, Map<String, String> queryMap) { mUri = URI.Factory.create(scheme, authority, path, URIUtils.generateQueryString(queryMap)); }
/** * Constructs an {@link AlluxioURI} from components. * * @param scheme the scheme of the path. e.g. alluxio, hdfs, s3, file, null, etc * @param authority the authority of the path. e.g. localhost:19998, 203.1.2.5:8080 * @param path the path component of the URI. e.g. /abc/c.txt, /a b/c/c.txt * @param queryMap the (nullable) map of key/value pairs for the query component of the URI */ public AlluxioURI(String scheme, String authority, String path, Map<String, String> queryMap) { mUri = URI.Factory.create(scheme, authority, path, URIUtils.generateQueryString(queryMap)); }