use of org.apache.hyracks.algebricks.core.algebra.prettyprint.AlgebricksAppendable in project asterixdb by apache.
the class ResultPrinter method printPostfix.
private void printPostfix() throws HyracksDataException {
output.out().flush();
if (wrapArray) {
output.out().println(" ]");
}
try {
output.resultPostfix(new AlgebricksAppendable(output.out()));
} catch (AlgebricksException e) {
throw new HyracksDataException(e);
}
if (conf.is(SessionConfig.FORMAT_HTML)) {
output.out().println("</pre>");
}
output.out().flush();
}
use of org.apache.hyracks.algebricks.core.algebra.prettyprint.AlgebricksAppendable in project asterixdb by apache.
the class AbstractRuleController method getPlanString.
private String getPlanString(Mutable<ILogicalOperator> opRef) throws AlgebricksException {
if (AlgebricksConfig.ALGEBRICKS_LOGGER.isLoggable(Level.FINE) && context != null) {
LogicalOperatorPrettyPrintVisitor pvisitor = context.getPrettyPrintVisitor();
pvisitor.reset(new AlgebricksAppendable());
PlanPrettyPrinter.printOperator((AbstractLogicalOperator) opRef.getValue(), pvisitor, 0);
return pvisitor.get().toString();
}
return null;
}
Aggregations