Package com.hp.hpl.jena.tdb.store.bulkloader2

Examples of com.hp.hpl.jena.tdb.store.bulkloader2.ProgressLogger.finish()


    ProgressLogger monitor = new ProgressLogger(log, "Data (1/2)", BulkLoader.DataTickPoint,BulkLoader.superTick) ;
    log.info("Data (1/2)...");
    Location location = new Location(args.length==1?args[0]:args[1]);
    monitor.start();
    NodeTableRewriter.fixNodeTable2(location, log, monitor);
        long time = monitor.finish() ;

        long total = monitor.getTicks() ;
        float elapsedSecs = time/1000F ;
        float rate = (elapsedSecs!=0) ? total/elapsedSecs : 0 ;
        String str =  String.format("Total: %,d RDF nodes : %,.2f seconds : %,.2f nodes/sec [%s]", total, elapsedSecs, rate, nowAsString()) ;
View Full Code Here


  public static void fixNodeTable2(Location location) throws IOException {
      ProgressLogger monitor = new ProgressLogger(log, "Data (1/2)", BulkLoader.DataTickPoint,BulkLoader.superTick) ;
      log.info("Data (1/2)...");
      monitor.start();
      NodeTableRewriter.fixNodeTable2(location, log, monitor);
      long time = monitor.finish() ;
        long total = monitor.getTicks() ;
        float elapsedSecs = time/1000F ;
        float rate = (elapsedSecs!=0) ? total/elapsedSecs : 0 ;
        String str =  String.format("Total: %,d RDF nodes : %,.2f seconds : %,.2f nodes/sec [%s]", total, elapsedSecs, rate, nowAsString()) ;
        log.info(str);
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.