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

Method existsFile

src/org/apache/pig/PigServer.java:1256–1259  ·  view source on GitHub ↗

Test whether a file exists. @param filename to test @return true if file exists, false otherwise @throws IOException

(String filename)

Source from the content-addressed store, hash-verified

1254 * @throws IOException
1255 */
1256 public boolean existsFile(String filename) throws IOException {
1257 ElementDescriptor elem = pigContext.getDfs().asElement(filename);
1258 return elem.exists();
1259 }
1260
1261 /**
1262 * Delete a file.

Callers 2

testPigServerMethod · 0.95
testStopOnFailureMethod · 0.95

Calls 3

existsMethod · 0.95
getDfsMethod · 0.80
asElementMethod · 0.65

Tested by 2

testPigServerMethod · 0.76
testStopOnFailureMethod · 0.76