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

Method sameSize

test/org/apache/pig/pigunit/Cluster.java:101–106  ·  view source on GitHub ↗
(Path local, Path destination)

Source from the content-addressed store, hash-verified

99 }
100
101 private boolean sameSize(Path local, Path destination) throws IOException {
102 FileSystem fs1 = FileSystem.getLocal(configuration);
103 FileSystem fs2 = destination.getFileSystem(configuration);
104
105 return fs1.getFileStatus(local).getLen() == fs2.getFileStatus(destination).getLen();
106 }
107}

Callers 1

updateMethod · 0.95

Calls 1

getFileSystemMethod · 0.80

Tested by

no test coverage detected