Project

General

Profile

« Previous | Next » 

Revision 54717

View differences:

modules/dnet-mapreduce-jobs/branches/master/src/main/java/eu/dnetlib/data/mapreduce/hbase/bulktag/ResultTagger.java
64 64
        //updating counters for subject matching
65 65
        subjects.forEach(c->context.getCounter(COUNTER_GROUP, "Matching subject for community " + c).increment(1));
66 66
        communities.addAll(subjects);
67

  
67
        context.getCounter(COUNTER_GROUP,"match found for subjects ").increment(subjects.size());
68 68
        final Set<String> datasources = new HashSet<>();
69 69
        oaf.getEntity().getResult().getInstanceList()
70 70
                .stream()
......
76 76

  
77 77
        datasources.forEach(c->context.getCounter(COUNTER_GROUP,"Matching datasource for community " + c).increment(1));
78 78
        communities.addAll(datasources);
79
        context.getCounter(COUNTER_GROUP,"Match found for content providers " ).increment(datasources.size());
79 80

  
80 81
        final Set<String> czenodo = new HashSet<>();
81 82
        final ResultProtos.Result.Metadata.Builder mBuilder = builder.getEntityBuilder().getResultBuilder().getMetadataBuilder();
......
83 84
                .collect(Collectors.toList())
84 85
                .forEach(c->czenodo.addAll(conf.getCommunityForZenodoCommunityValue(c.getId().substring(c.getId().lastIndexOf("/")+1).trim())));
85 86
        czenodo.forEach(c->context.getCounter(COUNTER_GROUP,"Matching Zenodo community for community " + c).increment(1));
87
        context.getCounter(COUNTER_GROUP,"Match found for Zenodo communities " ).increment(czenodo.size());
86 88

  
87 89
        communities.addAll(czenodo);
88 90
        List<Context.Builder> clist = mBuilder.getContextBuilderList().stream()

Also available in: Unified diff