(PigContext pigContext,
String scriptFile)
| 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, |
nothing calls this directly
no test coverage detected