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

Method update

test/org/apache/pig/pigunit/Cluster.java:49–53  ·  view source on GitHub ↗

If file size has changed, or if destination does not exist yet, copy it. @param local Path to the local file to copy to the cluster. @param destination Destination path on the cluster. @throws IOException If the copy failed.

(Path local, Path destination)

Source from the content-addressed store, hash-verified

47 * @throws IOException If the copy failed.
48 */
49 public void update(Path local, Path destination) throws IOException {
50 if (! exists(destination) || ! sameSize(local, destination)) {
51 copyFromLocalFile(local, destination, true);
52 }
53 }
54
55 public void copyFromLocalFile(Path local, Path destination) throws IOException {
56 copyFromLocalFile(local, destination, true);

Callers 1

setUpOnceMethod · 0.80

Calls 3

existsMethod · 0.95
sameSizeMethod · 0.95
copyFromLocalFileMethod · 0.95

Tested by

no test coverage detected