(String alias, String script, boolean isVerbose,
String format, String target,
List<String> params, List<String> files)
| 326 | } |
| 327 | |
| 328 | @Override |
| 329 | protected void processExplain(String alias, String script, boolean isVerbose, |
| 330 | String format, String target, |
| 331 | List<String> params, List<String> files) |
| 332 | throws IOException, ParseException { |
| 333 | if (mPigServer.isBatchOn()) { |
| 334 | mPigServer.parseAndBuild(); |
| 335 | } |
| 336 | if (alias == null && script == null) { |
| 337 | if (mInteractive) { |
| 338 | alias = mPigServer.getPigContext().getLastAlias(); |
| 339 | // if explain is used immediately after launching grunt shell then |
| 340 | // last defined alias will be null |
| 341 | if (alias == null) { |
| 342 | throw new ParseException("'explain' statement must be on an alias or on a script."); |
| 343 | } |
| 344 | } |
| 345 | } |
| 346 | if ("@".equals(alias)) { |
| 347 | alias = mPigServer.getLastRel(); |
| 348 | } |
| 349 | processExplain(alias, script, isVerbose, format, target, params, files, |
| 350 | false); |
| 351 | } |
| 352 | |
| 353 | protected void processExplain(String alias, String script, boolean isVerbose, |
| 354 | String format, String target, |
no test coverage detected