Show
Ignore:
Timestamp:
12.12.2016 10:35:42 (3 years ago)
Author:
davidb
Message:

Trigger serialization of whitelist in main program

Location:
other-projects/hathitrust/wcsa/extracted-features-solr/trunk/solr-ingest/src/main/java/org/hathitrust/extractedfeatures
Files:
1 added
1 modified

Legend:

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

    r31100 r31201  
    310310            = new ProcessForSolrIngest(input_dir,json_list_filename,solr_url,output_dir,verbosity); 
    311311         
     312         
     313        boolean use_whitelist = Boolean.getBoolean("wcsa-ef-ingest.use-whitelist"); 
     314                 
     315        if (use_whitelist) { 
     316            String whitelist_filename = System.getProperty("wcsa-ef-ingest.whitelist-filename"); 
     317 
     318            WhitelistBloomFilter whitelist_bloomfilter = new WhitelistBloomFilter(whitelist_filename,true); 
     319            whitelist_bloomfilter.contains("foo"); 
     320        } 
     321         
     322         
    312323        String process_ef_json_mode = System.getProperty("wcsa-ef-ingest.process-ef-json-mode","per-page"); 
    313324        if (process_ef_json_mode.equals("per-volume")) {