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)
| 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. |