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

Method getCurrentDir

src/org/apache/pig/parser/QueryParserUtils.java:90–95  ·  view source on GitHub ↗
(PigContext pigContext)

Source from the content-addressed store, hash-verified

88 }
89
90 static Path getCurrentDir(PigContext pigContext) throws IOException {
91 DataStorage dfs = pigContext.getDfs();
92 ContainerDescriptor desc = dfs.getActiveContainer();
93 ElementDescriptor el = dfs.asElement(desc);
94 return new Path(el.toString());
95 }
96
97 static void setHdfsServers(String absolutePath, PigContext pigContext) throws URISyntaxException {
98 // First check for the file system via the new property

Callers 3

buildLoadOpMethod · 0.95
buildStoreOpMethod · 0.95
attachStorePlanMethod · 0.95

Calls 4

getActiveContainerMethod · 0.95
asElementMethod · 0.95
getDfsMethod · 0.80
toStringMethod · 0.45

Tested by

no test coverage detected