Java Code Examples for org.apache.hadoop.util.StringUtils#stringToURI()

The following examples show how to use org.apache.hadoop.util.StringUtils#stringToURI() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: StreamJob.java    From hadoop with Apache License 2.0 5 votes vote down vote up
/**
 * 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);
}
 
Example 2
Source File: StreamJob.java    From big-c with Apache License 2.0 5 votes vote down vote up
/**
 * 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);
}
 
Example 3
Source File: StreamJob.java    From RDFS with Apache License 2.0 5 votes vote down vote up
/**
 * 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);
}
 
Example 4
Source File: StreamJob.java    From hadoop-gpu with Apache License 2.0 5 votes vote down vote up
/**
 * 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);
}
 
Example 5
Source File: JumbuneDistributedCache.java    From jumbune with GNU Lesser General Public License v3.0 4 votes vote down vote up
public static URI[] getCacheFiles(Configuration conf) throws IOException {
  return StringUtils.stringToURI(conf.getStrings(XmlDataValidationConstants.CACHED_SCHEMA));
}