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

Method describe

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

Describe the schema of an alias in this pipeline. Results will be printed to stdout. @param alias to be described @throws IOException if describe fails.

(String alias)

Source from the content-addressed store, hash-verified

250 * @throws IOException if describe fails.
251 */
252 public void describe(String alias) throws IOException {
253 if (queries.isEmpty()) {
254 LOG.info("No bound query to describe");
255 return;
256 }
257 PigServer pigServer = new PigServer(scriptContext.getPigContext(), false);
258 registerQueryForDiagnostics(pigServer, queries.get(0));
259 pigServer.dumpSchema(alias);
260 }
261
262 //-------------------------------------------------------------------------
263

Callers

nothing calls this directly

Calls 6

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

Tested by

no test coverage detected