Changeset 31250 for other-projects


Ignore:
Timestamp:
2016-12-19T15:03:27+13:00 (5 years ago)
Author:
davidb
Message:

Minor mods

File:
1 edited

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
Note: See TracChangeset for help on using the changeset viewer.