This method parses the scripts and builds the LogicalPlan. This method should be followed by PigServer#executeBatch(boolean) with argument as false. Do Not use PigServer#executeBatch() after calling this method as that will re-parse and build the script. @throws IOException
()
| 453 | * @throws IOException |
| 454 | */ |
| 455 | public void parseAndBuild() throws IOException { |
| 456 | if (currDAG == null || !isBatchOn()) { |
| 457 | int errCode = 1083; |
| 458 | String msg = "setBatchOn() must be called first."; |
| 459 | throw new FrontendException(msg, errCode, PigException.INPUT); |
| 460 | } |
| 461 | currDAG.parseQuery(); |
| 462 | currDAG.buildPlan( null ); |
| 463 | } |
| 464 | |
| 465 | /** |
| 466 | * Submits a batch of Pig commands for execution. |
no test coverage detected