public class ResourceDownloader extends Object
| Constructor and Description |
|---|
ResourceDownloader(org.apache.hadoop.conf.Configuration conf,
String resourceDirPath) |
| Modifier and Type | Method and Description |
|---|---|
static URI |
createURI(String path) |
List<URI> |
downloadExternal(URI source,
String subDir,
boolean convertToUnix) |
static boolean |
isFileUri(String value) |
static boolean |
isHdfsUri(String value) |
static boolean |
isIvyUri(String value) |
List<URI> |
resolveAndDownload(String source,
boolean convertToUnix) |
public ResourceDownloader(org.apache.hadoop.conf.Configuration conf,
String resourceDirPath)
public static URI createURI(String path) throws URISyntaxException
path - URISyntaxExceptionpublic static boolean isIvyUri(String value) throws URISyntaxException
URISyntaxExceptionpublic static boolean isHdfsUri(String value) throws URISyntaxException
URISyntaxExceptionpublic static boolean isFileUri(String value)
public List<URI> resolveAndDownload(String source, boolean convertToUnix) throws URISyntaxException, IOException
URISyntaxExceptionIOExceptionpublic List<URI> downloadExternal(URI source, String subDir, boolean convertToUnix) throws URISyntaxException, IOException
URISyntaxExceptionIOExceptionCopyright © 2019 The Apache Software Foundation. All Rights Reserved.