case MERGE: case NFLY: final URI[] targetUris = StringUtils.stringToURI( StringUtils.getStrings(target)); newLink = new INodeLink<T>(fullPath, aUgi,
/** * Get cache archives set in the Configuration * @param conf The configuration which contains the archives * @return A URI array of the caches set in the Configuration * @throws IOException */ public static URI[] getCacheArchives(Configuration conf) throws IOException { return StringUtils.stringToURI(conf.getStrings("mapred.cache.archives")); }
/** * Get cache archives set in the Configuration * @param conf The configuration which contains the archives * @return A URI array of the caches set in the Configuration * @throws IOException */ public static URI[] getCacheArchives(Configuration conf) throws IOException { return StringUtils.stringToURI(conf.getStrings("mapred.cache.archives")); }
/** * Get cache files set in the Configuration * @param conf The configuration which contains the files * @return A URI array of the files set in the Configuration * @throws IOException */ public static URI[] getCacheFiles(Configuration conf) throws IOException { return StringUtils.stringToURI(conf.getStrings("mapred.cache.files")); }
/** * Get cache archives set in the Configuration * @param conf The configuration which contains the archives * @return A URI array of the caches set in the Configuration * @throws IOException */ public static URI[] getSharedCacheArchives(Configuration conf) throws IOException { return StringUtils.stringToURI(conf.getStrings("mapred.cache.shared.archives")); }
/** * Get cache files set in the Configuration * @param conf The configuration which contains the files * @return A URI array of the files set in the Configuration * @throws IOException */ public static URI[] getCacheFiles(Configuration conf) throws IOException { return StringUtils.stringToURI(conf.getStrings("mapred.cache.files")); }
/** * Get cache files set in the Configuration * @param conf The configuration which contains the files * @return A URI array of the files set in the Configuration * @throws IOException */ public static URI[] getSharedCacheFiles(Configuration conf) throws IOException { return StringUtils.stringToURI(conf.getStrings("mapred.cache.shared.files")); }
/** * Get cache archives set in the Configuration. Used by * internal DistributedCache and MapReduce code. * @param conf The configuration which contains the archives * @return A URI array of the caches set in the Configuration * @throws IOException * @deprecated Use {@link JobContext#getCacheArchives()} instead */ @Deprecated public static URI[] getCacheArchives(Configuration conf) throws IOException { return StringUtils.stringToURI(conf.getStrings(MRJobConfig.CACHE_ARCHIVES)); }
/** * Get cache archives set in the Configuration. Used by * internal DistributedCache and MapReduce code. * @param conf The configuration which contains the archives * @return A URI array of the caches set in the Configuration * @throws IOException * @deprecated Use {@link JobContext#getCacheArchives()} instead */ @Deprecated public static URI[] getCacheArchives(Configuration conf) throws IOException { return StringUtils.stringToURI(conf.getStrings(MRJobConfig.CACHE_ARCHIVES)); }
/** * Get cache files set in the Configuration. Used by internal * DistributedCache and MapReduce code. * @param conf The configuration which contains the files * @return A URI array of the files set in the Configuration * @throws IOException * @deprecated Use {@link JobContext#getCacheFiles()} instead */ @Deprecated public static URI[] getCacheFiles(Configuration conf) throws IOException { return StringUtils.stringToURI(conf.getStrings(MRJobConfig.CACHE_FILES)); }
/** * Get cache files set in the Configuration. Used by internal * DistributedCache and MapReduce code. * @param conf The configuration which contains the files * @return A URI array of the files set in the Configuration * @throws IOException * @deprecated Use {@link JobContext#getCacheFiles()} instead */ @Deprecated public static URI[] getCacheFiles(Configuration conf) throws IOException { return StringUtils.stringToURI(conf.getStrings(MRJobConfig.CACHE_FILES)); }
/** * Get cache archives set in the Configuration. Used by * internal DistributedCache and MapReduce code. * @param conf The configuration which contains the archives * @return A URI array of the caches set in the Configuration * @throws IOException * @deprecated Use {@link JobContext#getCacheArchives()} instead */ @Deprecated public static URI[] getCacheArchives(Configuration conf) throws IOException { return StringUtils.stringToURI(conf.getStrings(MRJobConfig.CACHE_ARCHIVES)); }
/** * Get cache files set in the Configuration. Used by internal * DistributedCache and MapReduce code. * @param conf The configuration which contains the files * @return A URI array of the files set in the Configuration * @throws IOException * @deprecated Use {@link JobContext#getCacheFiles()} instead */ @Deprecated public static URI[] getCacheFiles(Configuration conf) throws IOException { return StringUtils.stringToURI(conf.getStrings(MRJobConfig.CACHE_FILES)); }
/** * Get cache archives set in the Configuration. Used by * internal DistributedCache and MapReduce code. * @param conf The configuration which contains the archives * @return A URI array of the caches set in the Configuration * @throws IOException * @deprecated Use {@link JobContext#getCacheArchives()} instead */ @Deprecated public static URI[] getCacheArchives(Configuration conf) throws IOException { return StringUtils.stringToURI(conf.getStrings(MRJobConfig.CACHE_ARCHIVES)); }
/** * Get cache files set in the Configuration. Used by internal * DistributedCache and MapReduce code. * @param conf The configuration which contains the files * @return A URI array of the files set in the Configuration * @throws IOException * @deprecated Use {@link JobContext#getCacheFiles()} instead */ @Deprecated public static URI[] getCacheFiles(Configuration conf) throws IOException { return StringUtils.stringToURI(conf.getStrings(MRJobConfig.CACHE_FILES)); }
/** * Get cache files set in the Configuration. Used by internal * DistributedCache and MapReduce code. * @param conf The configuration which contains the files * @return A URI array of the files set in the Configuration * @throws IOException * @deprecated Use {@link JobContext#getCacheFiles()} instead */ @Deprecated public static URI[] getCacheFiles(Configuration conf) throws IOException { return StringUtils.stringToURI(conf.getStrings(MRJobConfig.CACHE_FILES)); }
/** * get the uris of all the files/caches */ protected void getURIs(String lcacheArchives, String lcacheFiles) { String archives[] = StringUtils.getStrings(lcacheArchives); String files[] = StringUtils.getStrings(lcacheFiles); fileURIs = StringUtils.stringToURI(files); archiveURIs = StringUtils.stringToURI(archives); }
/** * get the uris of all the files/caches */ protected void getURIs(String lcacheArchives, String lcacheFiles) { String archives[] = StringUtils.getStrings(lcacheArchives); String files[] = StringUtils.getStrings(lcacheFiles); fileURIs = StringUtils.stringToURI(files); archiveURIs = StringUtils.stringToURI(archives); }
@Test (timeout = 30000) public void testStringToURI() { String[] str = new String[] { "file://" }; try { StringUtils.stringToURI(str); fail("Ignoring URISyntaxException while creating URI from string file://"); } catch (IllegalArgumentException iae) { assertEquals("Failed to create uri for file://", iae.getMessage()); } }
@Test (timeout = 30000) public void testStringToURI() { String[] str = new String[] { "file://" }; try { StringUtils.stringToURI(str); fail("Ignoring URISyntaxException while creating URI from string file://"); } catch (IllegalArgumentException iae) { assertEquals("Failed to create uri for file://", iae.getMessage()); } }