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

Method exists

test/org/apache/pig/pigunit/Cluster.java:37–40  ·  view source on GitHub ↗
(Path destination)

Source from the content-addressed store, hash-verified

35 }
36
37 public boolean exists(Path destination) throws IOException {
38 FileSystem fs = destination.getFileSystem(configuration);
39 return fs.exists(destination);
40 }
41
42 /**
43 * If file size has changed, or if destination does not exist yet, copy it.

Callers 1

updateMethod · 0.95

Calls 2

getFileSystemMethod · 0.80
existsMethod · 0.65

Tested by

no test coverage detected