.toArray(new String[0]); final RDFSource staticData = staticSpecs.length == 0 ? null : RDFProcessors.track( new Tracker(LOGGER, null, "%d static triples read (%d tr/s avg)", // "%d static triples read (%d tr/s, %d tr/s avg)")).wrap( RDFSources.read(true, preserveBNodes, base, null, staticSpecs));
@SuppressWarnings("unchecked") @Override public void handle(final BindingSet bindings) throws Throwable { if (this.writer == null) { this.writer = IO.utf8Writer(IO.buffer(IO.write(Query.this.file .getAbsolutePath()))); writerToClose.set(this.writer); this.variables = stream.getProperty("variables", List.class); for (int i = 0; i < this.variables.size(); ++i) { this.writer.write(i > 0 ? "\t?" : "?"); this.writer.write(this.variables.get(i)); } this.writer.write("\n"); } if (bindings != null) { this.writer.write(TestUtil.encode(this.variables, bindings)); this.writer.write("\n"); tracker.increment(); } }
final Tracker tracker = new Tracker(LOGGER, null, // "Parsed " + file.getAbsolutePath() + " (" + Joiner.on(", ").join(vars) + "): %d tuples (%d tuple/s avg)", // "Parsed %d tuples (%d tuple/s, %d tuple/s avg)"); tracker.start(); tracker.increment(); } catch (final Throwable ex) { LOGGER.warn("Ignoring invalid line " + lineNum + " of file " + file + " - " tracker.end();
final Tracker tracker = new Tracker(LOGGER, null, // "Processed %d NAF files (%d NAF/s avg)", // "Processed %d NAF files (%d NAF/s, %d NAF/s avg)"); final AtomicInteger counter = new AtomicInteger(0); final AtomicInteger succeeded = new AtomicInteger(0); tracker.start(); for (int i = 0; i < numThreads; ++i) { Environment.getPool().submit(new Runnable() { throw new RuntimeException(ex); tracker.end();
final Tracker tracker = new Tracker(LOGGER, null, // "Processed %d NAF files (%d NAF/s avg)", // "Processed %d NAF files (%d NAF/s, %d NAF/s avg)"); tracker.start(); for (int i = 0; i < this.inputFiles.size(); ++i) { final File inputFile = this.inputFiles.get(i); MDC.remove("context"); tracker.increment(); tracker.end();