@@ -64,7 +64,8 @@ class FPTree extends Serializable {
64
64
* @return root node after merge
65
65
*/
66
66
private def mergeTree (tree1 : FPTreeNode , tree2 : FPTreeNode ): FPTreeNode = {
67
- // firstly merge two roots, then iterate on the second tree, merge all children of it to the first tree
67
+ // firstly merge two roots, then iterate on the second tree, merge all
68
+ // children of it to the first tree
68
69
require(tree1 != null )
69
70
require(tree2 != null )
70
71
if (! tree2.isRoot) {
@@ -108,7 +109,8 @@ class FPTree extends Serializable {
108
109
}
109
110
110
111
/**
111
- * This function will walk through the tree and build all conditional pattern base out of it
112
+ * This function will walk through the tree and build all conditional pattern
113
+ * base out of it
112
114
* @param tree the tree to expand
113
115
* @return conditional pattern base
114
116
*/
@@ -187,7 +189,8 @@ class FPTree extends Serializable {
187
189
val lineCom = v.toList.combinations(k)
188
190
lineComListBuffer ++= lineCom.toList
189
191
} else {
190
- /* if each value length > k,it need calculate the intersect of each value & before combinations */
192
+ // if each value length > k,it need calculate the intersect of each
193
+ // value & before combinations
191
194
val union_lineComListTemp2v = v intersect lineComListTempBuffer.toArray.array
192
195
// calculate each value combinations after intersect
193
196
if (union_lineComListTemp2v.length >= k) {
0 commit comments