serf.data
Interface MatcherMerger

All Known Implementing Classes:
BasicMatcherMerger, MatchMergeIgnoreConf, ProductMatcherMerger, SimpleMatcherMerger, YahooMatcherMerger

public interface MatcherMerger

MatcherMerger defines the interface for the match and merge operations. Match and merge functions should obey the following four properties idempotence commutativity associativity representivity See Swoosh: A Generic Approach to Entity Resolution for more information


Method Summary
 boolean match(Record r1, Record r2)
          Compare records.
 Record merge(Record r1, Record r2)
          Merge two records into a single record.
 

Method Detail

match

boolean match(Record r1,
              Record r2)
Compare records. If they match, return true.

Parameters:
r1 - Record 1
r2 - Record 2
Returns:
true if the records match.

merge

Record merge(Record r1,
             Record r2)
Merge two records into a single record. Return the merged record

Parameters:
r1 - Record 1
r2 - Record 2
Returns:
the record resulting from merging Records 1 and 2.