public class MaxScoreMatchingRule<RecordType extends Matchable,SchemaElementType extends Matchable> extends FilteringMatchingRule<RecordType,SchemaElementType>
ATTRIBUTE_IS_MATCH, MATCHINGRULE, RECORD1IDENTIFIER, RECORD2IDENTIFIER, TOTALSIMILARITY| Constructor and Description | 
|---|
MaxScoreMatchingRule(double finalThreshold)  | 
| Modifier and Type | Method and Description | 
|---|---|
void | 
addMatchingRule(FilteringMatchingRule<RecordType,SchemaElementType> rule)  | 
Correspondence<RecordType,SchemaElementType> | 
apply(RecordType record1,
     RecordType record2,
     Processable<Correspondence<SchemaElementType,Matchable>> schemaCorrespondences)
applies rule to the combination of first and second record and returns
 the correspondence between them if satisfies the criteria 
 | 
double | 
compare(RecordType record1,
       RecordType record2,
       Correspondence<SchemaElementType,Matchable> schemaCorrespondence)
Compares two records and returns a similarity value 
 | 
mapRecordactivateDebugReport, activateDebugReport, addComparatorToLog, addDebugRecordShort, addGoldstandardToDebugResults, continueCollectDebugResults, fillDebugRecord, fillSimilarity, fillSimilarity, getComparisonLog, getCorrespondenceForComparator, getFinalThreshold, getResultToComparatorLog, initializeDebugRecord, initializeMatchingResults, isDebugReportActive, setComparisonLog, setFinalThreshold, writeDebugMatchingResultsToFileclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetFirstSchemaElement, getSecondSchemaElementpublic MaxScoreMatchingRule(double finalThreshold)
finalThreshold - the similariy threshold for this rulepublic void addMatchingRule(FilteringMatchingRule<RecordType,SchemaElementType> rule)
public double compare(RecordType record1, RecordType record2, Correspondence<SchemaElementType,Matchable> schemaCorrespondence)
Comparatorrecord1 - the first record (must not be null)record2 - the second record (must not be null)schemaCorrespondence - A schema correspondence between two record1 and record2 (can
            be null)public Correspondence<RecordType,SchemaElementType> apply(RecordType record1, RecordType record2, Processable<Correspondence<SchemaElementType,Matchable>> schemaCorrespondences)
FilteringMatchingRuleapply in class FilteringMatchingRule<RecordType extends Matchable,SchemaElementType extends Matchable>record1 - the first record (must not be null)record2 - the second record (must not be null)schemaCorrespondences - the schema correspondences between the first and the second
            recordsCopyright © 2018. All rights reserved.