VisitorException, IOException {
log.debug("Entering TezLauncher.explain");
TezPlanContainer tezPlanContainer = compile(php, pc);
if (format.equals("text")) {
TezPlanContainerPrinter printer = new TezPlanContainerPrinter(ps, tezPlanContainer);
printer.setVerbose(verbose);
printer.visit();
} else {
// TODO: add support for other file format
throw new IOException("Non-text output of explain is not supported.");
}
}