public void noMatchFor(Record record) { nonmatches++; if (showmatches && linkage) System.out.println("\nNO MATCH FOR:\n" + toString(record, properties)); }
private String getIdentity(Record r) { for (Property p : config.getIdentityProperties()) for (String v : r.getValues(p.getName())) return v; throw new RuntimeException("No identity found in record [" + PrintMatchListener.toString(r) + "]"); }
private void match(int dbno, Record record, boolean matchall) { long start = System.currentTimeMillis(); Collection<Record> candidates = getDB(dbno).findCandidateMatches(record); searching += System.currentTimeMillis() - start; if (logger.isDebugEnabled()) logger.debug("Matching record " + PrintMatchListener.toString(record, config.getProperties()) + " found " + candidates.size() + " candidates"); start = System.currentTimeMillis(); if (matchall) compareCandidatesSimple(record, candidates); else compareCandidatesBest(record, candidates); comparing += System.currentTimeMillis() - start; }
private String getIdentity(Record r) { for (Property p : config.getIdentityProperties()) { Collection<String> vs = r.getValues(p.getName()); if (vs == null) continue; for (String v : vs) return v; } throw new DukeException("No identity found in record [" + PrintMatchListener.toString(r) + "]"); }
public void noMatchFor(Record record) { nonmatches++; if (showmatches && linkage) System.out.println("\nNO MATCH FOR:\n" + toString(record, properties)); }
private String getIdentity(Record r) { for (Property p : config.getIdentityProperties()) for (String v : r.getValues(p.getName())) return v; throw new RuntimeException("No identity found in record [" + PrintMatchListener.toString(r) + "]"); }
private void match(Record record, boolean matchall) { long start = System.currentTimeMillis(); Collection<Record> candidates = database.findCandidateMatches(record); searching += System.currentTimeMillis() - start; if (logger.isDebugEnabled()) logger.debug("Matching record " + PrintMatchListener.toString(record, config.getProperties()) + " found " + candidates.size() + " candidates"); start = System.currentTimeMillis(); if (matchall) compareCandidatesSimple(record, candidates); else compareCandidatesBest(record, candidates); comparing += System.currentTimeMillis() - start; }
private String getIdentity(Record r) { for (Property p : config.getIdentityProperties()) { Collection<String> vs = r.getValues(p.getName()); if (vs == null) continue; for (String v : vs) return v; } throw new DukeException("No identity found in record [" + PrintMatchListener.toString(r) + "]"); }