|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.knime.base.node.preproc.matcher.SubsetMatcher
public class SubsetMatcher
An ItemSetMatcher matches only one element of a
transaction list.
ItemSetMatcher are hierarchically organized.
Thus the item sets and the transaction lists need to be sorted in
the same way.
An ItemSetMatcher hierarchy for the two item sets (A,B,D; B,C,E)
A->B->D; B->C->E.
| Constructor Summary | |
|---|---|
SubsetMatcher(DataCell item,
Comparator<DataCell> comparator)
Constructor for class ItemSetMatcher. |
|
| Method Summary | |
|---|---|
void |
appendChildMatcher(DataCell[] itemSet,
int idx2process)
|
int |
compare(DataCell val)
|
int |
compareTo(SubsetMatcher o)
Compares two SubsetMatcher objects based on the item they match
using their comparator. |
int |
getChildCount()
/** |
Collection<SubsetMatcher> |
getChildren()
|
DataCell |
getItem()
|
int |
getItemSetCount()
|
void |
getItemSets(Collection<DataCell> itemSets,
Collection<DataCell> previousItems)
|
boolean |
isEnd()
|
void |
match(DataCell[] transactionItems,
int idx,
Collection<SetMissmatches> matchingSets,
Collection<DataCell> items,
MismatchCounter mismatches)
|
boolean |
matches(DataCell item)
|
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public SubsetMatcher(DataCell item,
Comparator<DataCell> comparator)
item - the item this matcher matchescomparator - the comparator to use| Method Detail |
|---|
public void appendChildMatcher(DataCell[] itemSet,
int idx2process)
itemSet - the item set to create the child matcher foridx2process - the index of the item to matchpublic boolean isEnd()
true if this matcher matches the last
item of an item setpublic Collection<SubsetMatcher> getChildren()
SubsetMatcher of this matcher if anypublic boolean matches(DataCell item)
item - the item to match
true if the matcher matches the given itempublic DataCell getItem()
public int compare(DataCell val)
val - the value to compare with the one this matcher matches
public void match(DataCell[] transactionItems,
int idx,
Collection<SetMissmatches> matchingSets,
Collection<DataCell> items,
MismatchCounter mismatches)
transactionItems - the sorted transaction item listidx - the index to processmatchingSets - all matching item setsitems - all processed itemsmismatches - the MismatchCounter
public void getItemSets(Collection<DataCell> itemSets,
Collection<DataCell> previousItems)
itemSets - all item sets that are matched by the given matcherspreviousItems - the previous itemspublic int getChildCount()
public int getItemSetCount()
public String toString()
toString in class Objectpublic int compareTo(SubsetMatcher o)
SubsetMatcher objects based on the item they match
using their comparator.
compareTo in interface Comparable<SubsetMatcher>
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||