|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface EquivalenceClassDatabase
A tool for collecting matching records into groups where all records are considered to match. Note that this means treating the matching relation between records as transitive, which in practice it is not.
Method Summary | |
---|---|
void |
addLink(String id1,
String id2)
Add a new link between two records. |
void |
commit()
Commit changes made to persistent store. |
Collection<String> |
getClass(String id)
Get all records linked to the given record (that is, all records in the same equivalence class as the given record). |
int |
getClassCount()
Returns the number of equivalence classes in the database. |
Iterator<Collection<String>> |
getClasses()
Returns an iterator over all the classes in the database. |
Method Detail |
---|
int getClassCount()
Iterator<Collection<String>> getClasses()
Collection<String> getClass(String id)
id
- the ID of a record
void addLink(String id1, String id2)
void commit()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |