Changeset 31313

Show
Ignore:
Timestamp:
22.01.2017 00:09:04 (3 years ago)
Author:
davidb
Message:

Alternative to avoid concurrency update exception

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • other-projects/hathitrust/wcsa/extracted-features-solr/trunk/solr-ingest/src/main/java/org/hathitrust/extractedfeatures/PerVolumeMongoDBDocumentsMap.java

    r31312 r31313  
    5353    protected void fixup_section(Document ef_count) 
    5454    { 
    55         Set<String> key_set = ef_count.keySet(); 
    56         for (String key : key_set) { 
     55         
     56         
     57        //Set<String> key_set = ef_count.keySet(); 
     58        //for (String key : key_set) { 
     59             
     60        Iterator<String> key_iterator = ef_count.keySet().iterator(); 
     61        while (key_iterator.hasNext()) { 
     62            String key = key_iterator.next(); 
    5763            if (key.matches("\\.")) { 
    5864                String new_key = key.replaceAll("\\.", "<PERIOD>");