Ignore:
Timestamp:
2020-01-31T21:50:34+13:00 (4 years ago)
Author:
ak19
Message:

Clarifications

File:
1 edited

Legend:

Unmodified
Added
Removed
  • other-projects/maori-lang-detection/src/org/greenstone/atea/MongoDBAccess.java

    r33882 r33883  
    537537    // newlines after every array element in the json:
    538538    String jsonStr = prettyPrintJson(doc.toJson());
    539     System.err.println(jsonStr);
     539    //System.err.println(jsonStr);
    540540    try {
    541541        writer.write(jsonStr + NEWLINE);
     
    553553    }
    554554
    555 
    556     public void writeToFile(boolean append, String filename, AggregateIterable<Document> output) {
    557    
    558     // should only have one doc
    559     for (Document doc : output) {
    560         //System.out.println(doc);
    561         System.out.println(doc.toJson());
    562     }
    563     }
    564    
    565555   
    566556    /** https://stackoverflow.com/questions/19938153/do-i-need-to-explicitly-close-connection */
Note: See TracChangeset for help on using the changeset viewer.