use of org.apache.asterix.lang.aql.visitor.AQLToSQLPPPrintVisitor in project asterixdb by apache.
the class AQLFormatPrintUtil method toSQLPPString.
public static String toSQLPPString(List<Statement> exprs) throws CompilationException {
ByteArrayOutputStream bos = new ByteArrayOutputStream();
PrintWriter output = new PrintWriter(bos);
AQLToSQLPPPrintVisitor visitor = new AQLToSQLPPPrintVisitor(output);
for (Statement expr : exprs) {
expr.accept(visitor, 0);
}
output.close();
return bos.toString();
}
Aggregations