The compareFields method contains all the comparison logic needed to compare two field values and calculate a matching weight that shows how similar the values are.
double compareFields(String recordA, String recordB, Map context)
Parameter |
Type |
Description |
---|---|---|
recordA |
String |
A field value from the record against which the reference record is being compared. |
recordB |
String |
A field value from the reference record. |
context |
Map |
A set of arguments passed to the comparator. |
A number between zero and one that indicates how closely two field values match.
MatchComparatorException