Ignore:
Timestamp:
2019-10-23T23:05:38+13:00 (5 years ago)
Author:
ak19
Message:

Work in progress of writing out CSV files. In future, may write the same info to MySQL DB instead. This commit only does the first of 3 tables, the websites csv file.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • gs3-extensions/maori-lang-detection/src/org/greenstone/atea/MRIWebPageStats.java

    r33587 r33600  
    4040    return str.toString();
    4141    }
     42
     43    /** for converting to csv */
     44    public String[] toCSV() {
     45    String[] csvRecord = { Integer.toString(pageID),
     46                   siteID, // foreign key
     47                   URL,
     48                   Boolean.toString(isMRI),
     49                   Integer.toString(numSentences),
     50                   Integer.toString(numSentencesInMRI)
     51    };
     52
     53    return csvRecord;
     54    }
    4255}
Note: See TracChangeset for help on using the changeset viewer.