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

Method depthFirstSearchForFile

src/org/apache/pig/impl/util/Utils.java:624–627  ·  view source on GitHub ↗

Finds a valid path for a file from a FileStatus object. @param fileStatus FileStatus object corresponding to a file, or a directory. @param fileSystem FileSystem in with the file should be found @return The first file found @throws IOException

(final FileStatus[] statusArray,
            final FileSystem fileSystem)

Source from the content-addressed store, hash-verified

622 */
623
624 public static Path depthFirstSearchForFile(final FileStatus[] statusArray,
625 final FileSystem fileSystem) throws IOException {
626 return depthFirstSearchForFile(statusArray, fileSystem, null);
627 }
628
629 /**
630 * Finds a valid path for a file from an array of FileStatus objects.

Callers 3

getAvroSchemaMethod · 0.95
getFirstFileMethod · 0.95
getAvroSchemaMethod · 0.95

Calls 5

sortMethod · 0.80
isFileMethod · 0.80
getPathMethod · 0.45
acceptMethod · 0.45
listStatusMethod · 0.45

Tested by

no test coverage detected