public class FPTree<T>
extends Object
implements scala.Serializable
Modifier and Type | Class and Description |
---|---|
static class |
FPTree.Node<T>
Representing a node in an FP-Tree.
|
Constructor and Description |
---|
FPTree() |
Modifier and Type | Method and Description |
---|---|
FPTree<T> |
add(scala.collection.Iterable<T> t,
long count)
Adds a transaction with count.
|
scala.collection.Iterator<scala.Tuple2<scala.collection.immutable.List<T>,Object>> |
extract(long minCount,
scala.Function1<T,Object> validateSuffix)
Extracts all patterns with valid suffix and minimum count.
|
FPTree<T> |
merge(FPTree<T> other)
Merges another FP-Tree.
|
FPTree.Node<T> |
root() |
scala.collection.Iterator<scala.Tuple2<scala.collection.immutable.List<T>,Object>> |
transactions()
Returns all transactions in an iterator.
|
public FPTree.Node<T> root()
public scala.collection.Iterator<scala.Tuple2<scala.collection.immutable.List<T>,Object>> transactions()