MCPcopy Create free account
hub / github.com/apache/pig / fetchFile

Method fetchFile

src/org/apache/pig/impl/io/FileLocalizer.java:755–757  ·  view source on GitHub ↗

Ensures that the passed path is on the local file system, fetching it to the java.io.tmpdir if necessary. If pig.jars.relative.to.dfs is true and dfs is not null, then a relative path is assumed to be relative to the passed dfs active directory. Else they are assumed to be relative to the local work

(Properties properties, String filePath)

Source from the content-addressed store, hash-verified

753 * directory.
754 */
755 public static FetchFileRet fetchFile(Properties properties, String filePath) throws IOException {
756 return fetchFilesInternal(properties, filePath, false)[0];
757 }
758
759 /**
760 * Ensures that the passed files pointed to by path are on the local file system,

Callers 5

registerCodeMethod · 0.95
runMethod · 0.95
fetchRemoteParamFilesMethod · 0.95
loadScriptMethod · 0.95
getMacroFileMethod · 0.95

Calls 1

fetchFilesInternalMethod · 0.95

Tested by

no test coverage detected