Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
SPARK-8077: Optimization for TreeNodes with large numbers of children
Add comment about required immutability of children
  • Loading branch information
MickDavies committed Jun 12, 2015
commit 38cd42549ea39188216d43998230efa474bf546b
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,10 @@ abstract class TreeNode[BaseType <: TreeNode[BaseType]] {

val origin: Origin = CurrentOrigin.get

/** Returns a Seq of the children of this node */
/**
* Returns a Seq of the children of this node.
* Children should not change. Immutability required for containsChild optimization
*/
def children: Seq[BaseType]

lazy val containsChild: Set[TreeNode[_]] = children.toSet
Expand Down