Revision 38586
Added by Claudio Atzori almost 9 years ago
AuthorImportRecordsMapper.java | ||
---|---|---|
102 | 102 |
|
103 | 103 |
@Override |
104 | 104 |
public boolean apply(final Oaf.Builder b) { |
105 |
return merged.containsKey(b.getEntity().getId()); |
|
105 |
final boolean res = merged.containsKey(b.getEntity().getId()); |
|
106 |
if (res) { |
|
107 |
context.getCounter("mdstore", "person (found in anchor map)").increment(1); |
|
108 |
} |
|
109 |
return !res; |
|
106 | 110 |
} |
107 | 111 |
}); |
108 | 112 |
|
... | ... | |
114 | 118 |
for (final CoAuthor.Builder cb : b.getEntityBuilder().getPersonBuilder().getCoauthorBuilderList()) { |
115 | 119 |
final String anchorId = merged.get(cb.getId()); |
116 | 120 |
if (StringUtils.isNotBlank(anchorId)) { |
121 |
context.getCounter("mdstore", "person (coAuthor as anchor)").increment(1); |
|
117 | 122 |
cb.setAnchorId(anchorId); |
118 | 123 |
} |
119 | 124 |
} |
Also available in: Unified diff
fixed tests, added new dedup specific jobs