Ignore:
Timestamp:
2016-11-02T14:28:39+13:00 (7 years ago)
Author:
davidb
Message:

Tweak to some verbosity level 2 printing

File:
1 edited

Legend:

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

    r31007 r31030  
    7171        ClusterFileIO.createDirectoryAll(_output_dir + "/" + page_json_dir);
    7272       
     73        if (_verbosity >= 2) {
     74              System.out.print("  Pages: ");
     75            }
     76       
    7377        ArrayList<JSONObject> json_pages = new ArrayList<JSONObject>(ef_num_pages);
    7478        for (int i = 0; i < ef_page_count; i++) {
     
    7781       
    7882            if (_verbosity >= 2) {
    79               System.out.println("  Page: " + page_id);
     83              if (i>0) {
     84                  System.out.print(", ");
     85              }
     86              System.out.print(page_id);
    8087            }
    8188           
     
    8390            //ids.add(output_json_bz2);
    8491           
    85             if (i==0) {
     92            if (i==(ef_page_count-1)) {
     93                if (_verbosity >= 2) {
     94                    System.out.println();
     95                }
    8696                System.out.println("Sample output JSON page file: " + output_json_bz2);
    8797            }
Note: See TracChangeset for help on using the changeset viewer.