Package org.partiql.lang.prettyprint

Types

Link copied to clipboard
class ASTPrettyPrinter

This class is used to pretty print PIG AST.

Link copied to clipboard
class QueryPrettyPrinter

This class is used to pretty print a query, which first transforms a query into a parsed tree, and then transform it back to a pretty string.

Link copied to clipboard
class RecursionTree(astType: String, value: String?, attrOfParent: String?, children: List<RecursionTree>?)

PIG AST is not a recursive data structure, thus it is not easy to transform it directly to a pretty printed string. So we need to first transform it into RecursionTree, which is a recursive tree structure (it has a list of children which are also RecursionTree), then we can recursively pretty print the RecursionTree as we want.