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

Method processExplain

src/org/apache/pig/tools/grunt/GruntParser.java:328–351  ·  view source on GitHub ↗
(String alias, String script, boolean isVerbose,
                                  String format, String target,
                                  List<String> params, List<String> files)

Source from the content-addressed store, hash-verified

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,

Callers 1

checkScriptMethod · 0.45

Calls 11

setBatchOnMethod · 0.95
loadScriptMethod · 0.95
discardBatchMethod · 0.95
explainCurrentBatchMethod · 0.95
parseAndBuildMethod · 0.80
getLastAliasMethod · 0.80
validateMethod · 0.65
isBatchOnMethod · 0.45
getPigContextMethod · 0.45
equalsMethod · 0.45
getLastRelMethod · 0.45

Tested by

no test coverage detected