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

Method parseAndBuild

src/org/apache/pig/PigServer.java:455–463  ·  view source on GitHub ↗

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

()

Source from the content-addressed store, hash-verified

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.

Callers 5

executeBatchMethod · 0.95
processDescribeMethod · 0.80
processExplainMethod · 0.80
processDumpMethod · 0.80
processIllustrateMethod · 0.80

Calls 3

isBatchOnMethod · 0.95
parseQueryMethod · 0.80
buildPlanMethod · 0.45

Tested by

no test coverage detected