Search in sources :

Example 1 with StreamingCsvModuleLoader

use of com.tyndalehouse.step.core.data.loaders.StreamingCsvModuleLoader in project step by STEPBible.

the class Loader method loadRobinsonMorphology.

/**
 * loads all hotspots
 *
 * @return number of records loaded
 */
// pt20201119 This code was never used so Patrick Tang commented it out on November 19, 2020.  Search for the "November 19, 2020" string to find all the related changes in the Java code.
// pt20201119    int loadHotSpots() {
// pt20201119        this.addUpdate("install_timeline_periods");
// pt20201119
// pt20201119        LOGGER.debug("Loading hotspots");
// pt20201119
// pt20201119        final EntityIndexWriterImpl writer = this.entityManager.getNewWriter("hotspot");
// pt20201119        new StreamingCsvModuleLoader(writer,
// pt20201119                this.coreProperties.getProperty("test.data.path.timeline.hotspots")).init(this);
// pt20201119        return writer.close();
// pt20201119    }
/**
 * Loads all of robinson's morphological data
 *
 * @return the number of entries
 */
int loadRobinsonMorphology() {
    this.addUpdate("install_grammar");
    LOGGER.debug("Loading robinson morphology");
    final EntityIndexWriterImpl writer = this.entityManager.getNewWriter("morphology");
    new StreamingCsvModuleLoader(writer, this.coreProperties.getProperty("test.data.path.morphology.robinson")).init(this);
    final int total = writer.close();
    LOGGER.debug("End of morphology");
    this.addUpdate("install_grammar_complete", total);
    return total;
}
Also used : StreamingCsvModuleLoader(com.tyndalehouse.step.core.data.loaders.StreamingCsvModuleLoader) EntityIndexWriterImpl(com.tyndalehouse.step.core.data.entities.impl.EntityIndexWriterImpl)

Example 2 with StreamingCsvModuleLoader

use of com.tyndalehouse.step.core.data.loaders.StreamingCsvModuleLoader in project step by STEPBible.

the class Loader method loadVersionInformation.

/**
 * Loads Tyndale's version information
 *
 * @return the number of records loaded
 */
int loadVersionInformation() {
    this.addUpdate("install_descriptions");
    LOGGER.debug("Loading version information");
    final EntityIndexWriterImpl writer = this.entityManager.getNewWriter("versionInfo");
    new StreamingCsvModuleLoader(writer, this.coreProperties.getProperty("test.data.path.versions.info")).init(this);
    final int close = writer.close();
    this.addUpdate("install_descriptions_complete", close);
    return close;
}
Also used : StreamingCsvModuleLoader(com.tyndalehouse.step.core.data.loaders.StreamingCsvModuleLoader) EntityIndexWriterImpl(com.tyndalehouse.step.core.data.entities.impl.EntityIndexWriterImpl)

Aggregations

EntityIndexWriterImpl (com.tyndalehouse.step.core.data.entities.impl.EntityIndexWriterImpl)2 StreamingCsvModuleLoader (com.tyndalehouse.step.core.data.loaders.StreamingCsvModuleLoader)2