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

Method explain

src/org/apache/pig/scripting/BoundScript.java:236–244  ·  view source on GitHub ↗

Explain this pipeline. Results will be printed to stdout. @throws IOException if explain fails.

()

Source from the content-addressed store, hash-verified

234 * @throws IOException if explain fails.
235 */
236 public void explain() throws IOException {
237 if (queries.isEmpty()) {
238 LOG.info("No bound query to explain");
239 return;
240 }
241 PigServer pigServer = new PigServer(scriptContext.getPigContext(), false);
242 registerQueryForDiagnostics(pigServer, queries.get(0));
243 pigServer.explain(null, System.out);
244 }
245
246 /**
247 * Describe the schema of an alias in this pipeline.

Callers

nothing calls this directly

Calls 6

explainMethod · 0.95
infoMethod · 0.80
getMethod · 0.65
isEmptyMethod · 0.45
getPigContextMethod · 0.45

Tested by

no test coverage detected