telepath / com.github.giedomak.telepath.datamodels.plans.utilities / LogicalPlanSubtree

LogicalPlanSubtree

object LogicalPlanSubtree (source)

Abstract the subtreesOfSize functionality into its own class.

Functions

getSize

fun getSize(tree: LogicalPlan): Int

Get the size of this parsetree. This recurses through its children, we should augment our tree --> time is money.

subtreesOfSize

fun subtreesOfSize(tree: LogicalPlan, targetSize: Int): List<LogicalPlan>

Find all (partial) subtrees of a given targetSize.