Package org.apache.marmotta.kiwi.loader

Examples of org.apache.marmotta.kiwi.loader.KiWiLoaderConfiguration


            repository = new SailRepository(store);
            repository.initialize();



            KiWiLoaderConfiguration loaderConfiguration = new KiWiLoaderConfiguration();
            if(configuration.containsKey(LoaderOptions.CONTEXT)) {
                loaderConfiguration.setContext(configuration.getString(LoaderOptions.CONTEXT));
            }

            loaderConfiguration.setDropIndexes(configuration.getBoolean("backend.kiwi.drop-indexes", false));

            if(kiwi.getDialect() instanceof PostgreSQLDialect) {
                log.info("- using PostgreSQL bulk loader ... ");
                loaderConfiguration.setCommitBatchSize(100000);
                handler = new KiWiPostgresHandler(store,loaderConfiguration);
            } else if(kiwi.getDialect() instanceof MySQLDialect) {
                log.info("- using MySQL bulk loader ... ");
                loaderConfiguration.setCommitBatchSize(100000);
                handler = new KiWiMySQLHandler(store,loaderConfiguration);
            } else {
                log.info("- using generic KiWi loader ... ");
                handler = new KiWiHandler(store,loaderConfiguration);
            }
View Full Code Here

TOP

Related Classes of org.apache.marmotta.kiwi.loader.KiWiLoaderConfiguration

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.