object LogicalPlanSubtree
(source)
Abstract the subtreesOfSize functionality into its own class.
fun getSize(tree: LogicalPlan): Int
Get the size of this parsetree. This recurses through its children, we should augment our tree --> time is money. |
|
fun subtreesOfSize(tree: LogicalPlan, targetSize: Int): List<LogicalPlan>
Find all (partial) subtrees of a given targetSize. |