Show
Ignore:
Timestamp:
19.12.2016 15:03:27 (3 years ago)
Author:
davidb
Message:

Minor mods

Files:
1 modified

Legend:

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

    r31247 r31250  
    105105 
    106106            }); 
     107 
     108        //JavaPairRDD<Integer, String> sorted_swapped_pair = swappedPair.sortByKey(false,num_partitions); 
    107109        JavaPairRDD<Integer, String> sorted_swapped_pair = swappedPair.sortByKey(false,1); 
    108110 
     
    126128         
    127129        //sorted_counts.saveAsTextFile(_json_list_filename + ".out"); 
    128         String output_directory = _json_list_filename.replaceAll("\\.txt$","-out"); 
     130        String filename_root = _json_list_filename.replaceAll(".*/","").replaceAll("\\..*$",""); 
     131        String output_directory = "whitelist-" + filename_root + "-out"; 
    129132        sorted_swaped_back_pair.saveAsTextFile(output_directory); 
    130133