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

Method run

src/org/apache/pig/scripting/ScriptEngine.java:307–311  ·  view source on GitHub ↗

Runs a script file. @param pigContext PigContext to run the script file @param scriptFile the file @return a collection of PigStats objects. One for each runtime instance of Pig in the script. For named pipelines, the map key is the name of the pipeline. For unnamed pipeline,

(PigContext pigContext, String scriptFile)

Source from the content-addressed store, hash-verified

305 * @throws IOException
306 */
307 public Map<String, List<PigStats>> run(PigContext pigContext, String scriptFile)
308 throws ExecException, IOException {
309 ScriptPigContext.set(pigContext, this);
310 return main(pigContext, scriptFile);
311 }
312
313 /**
314 * Gets the collection of {@link PigStats} after the script is run.

Callers 6

varargTestMethod · 0.95
firstTestMethod · 0.95
testTCMethod · 0.95
runScriptMethod · 0.95
runEmbeddedScriptMethod · 0.95

Calls 2

setMethod · 0.95
mainMethod · 0.95

Tested by 5

varargTestMethod · 0.76
firstTestMethod · 0.76
testTCMethod · 0.76
runScriptMethod · 0.76