Package org. partiql. lang. prettyprint
Types
Link copied to clipboard
This class is used to pretty print PIG AST.
Link copied to clipboard
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>?)
Content copied to clipboard
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.