Revision 53063
Added by Miriam Baglioni over 5 years ago
modules/dnet-mapreduce-jobs/trunk/src/main/java/eu/dnetlib/data/mapreduce/hbase/propagation/PropagationCountryInstitutionalOrganizationReducer.java | ||
---|---|---|
50 | 50 |
return; |
51 | 51 |
} |
52 | 52 |
final String country = Bytes.toString(it.next().get()); // need to update the information for the country to each element in the iterator |
53 |
if(country.trim().length() > 2){
|
|
53 |
if(country.trim().length() != 2){
|
|
54 | 54 |
throw new RuntimeException("Second Element in reducer is not country " + country); |
55 | 55 |
} |
56 | 56 |
|
Also available in: Unified diff
changed verification for country element