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

Method main

src/org/apache/pig/scripting/js/JsScriptEngine.java:210–226  ·  view source on GitHub ↗
(PigContext pigContext,
            String scriptFile)

Source from the content-addressed store, hash-verified

208 }
209
210 @Override
211 protected Map<String, List<PigStats>> main(PigContext pigContext,
212 String scriptFile) throws IOException {
213
214 File f = new File(scriptFile);
215
216 if (!f.canRead()) {
217 throw new IOException("Can't read file: " + scriptFile);
218 }
219
220 registerFunctions(scriptFile, null, pigContext);
221
222 // run main
223 jsEval("main", "main();");
224
225 return getPigStatsMap();
226 }
227
228 @Override
229 public void registerFunctions(String path, String namespace,

Callers

nothing calls this directly

Calls 3

registerFunctionsMethod · 0.95
jsEvalMethod · 0.95
getPigStatsMapMethod · 0.80

Tested by

no test coverage detected