master #11

Manually merged
claudio.atzori merged 275 commits from :master into enrichment_wfs 2020-05-11 15:14:56 +02:00
1 changed files with 6 additions and 2 deletions
Showing only changes of commit b46b080ddc - Show all commits

View File

@ -135,12 +135,16 @@ public class SparkCountryPropagationJob2 {
for (Qualifier country : r.getCountry()) {
countries.add(country.getClassid());
}
Result res = new Result();
res.setId(r.getId());
List<Country> countryList = new ArrayList<>();
for (CountrySbs country : potentialNewCountries.get().getCountrySet()) {
if (!countries.contains(country.getClassid())) {
r.getCountry().add(getCountry(country.getClassid(), country.getClassname()));
countryList.add(getCountry(country.getClassid(), country.getClassname()));
}
}
res.setCountry(countryList);
r.mergeFrom(res);
}
return r;
}, Encoders.bean(resultClazz));