public long addStatements(final IChunkedOrderedIterator<ISPO> itr, final IElementFilter<ISPO> filter) { return addStatements(this/* statementStore */, false/* copyOnly */, itr, filter); }
public long addStatements(final IChunkedOrderedIterator<ISPO> itr, final IElementFilter<ISPO> filter) { return addStatements(this/* statementStore */, false/* copyOnly */, itr, filter); }
public long addStatements(final ISPO[] stmts, final int numStmts, final IElementFilter<ISPO> filter) { if (numStmts == 0) return 0; return addStatements(new ChunkedArrayIterator<ISPO>(numStmts, stmts, null/* keyOrder */), filter); }
public long addStatements(final ISPO[] stmts, final int numStmts) { if (numStmts == 0) return 0; return addStatements(new ChunkedArrayIterator<ISPO>(numStmts, stmts, null/* keyOrder */), null /* filter */); }
public long addStatements(final ISPO[] stmts, final int numStmts, final IElementFilter<ISPO> filter) { if (numStmts == 0) return 0; return addStatements(new ChunkedArrayIterator<ISPO>(numStmts, stmts, null/* keyOrder */), filter); }
public long addStatements(final ISPO[] stmts, final int numStmts) { if (numStmts == 0) return 0; return addStatements(new ChunkedArrayIterator<ISPO>(numStmts, stmts, null/* keyOrder */), null /* filter */); }
/** * Writes on the statement indices (parallel, batch api). * * @return The elapsed time for the operation. */ public Long call() throws Exception { final long begin = System.currentTimeMillis(); final long n; if (changeLog == null) { n = database.addStatements(statementStore, copyOnly, itr, null/* filter */); } else { n = com.bigdata.rdf.changesets.StatementWriter.addStatements( database, statementStore, copyOnly, null/* filter */, itr, changeLog); } nwritten.addAndGet(n); return System.currentTimeMillis() - begin; }
/** * Writes the {@link Statement}s onto the {@link #getStatementStore()}. * * @return The #of statements actually written on the statement indices. */ @Override protected int handleProcessedStatements(final G[] a) { if (readOnly) { return 0; } /* * Align BigdataStatement[] to SPO[]. * * @todo if [SPO#override] is added to ISPO then we do not need to * allocate the intermediate SPO array. */ final SPO[] b = new SPO[a.length]; for (int i = 0; i < a.length; i++) { b[i] = new SPO(a[i]); } // Note: max return is int since upper bound is the array length. return (int) statementStore.addStatements(b, b.length); }
/** * Writes the {@link Statement}s onto the {@link #getStatementStore()}. * * @return The #of statements actually written on the statement indices. */ @Override protected int handleProcessedStatements(final G[] a) { if (readOnly) { return 0; } /* * Align BigdataStatement[] to SPO[]. * * @todo if [SPO#override] is added to ISPO then we do not need to * allocate the intermediate SPO array. */ final SPO[] b = new SPO[a.length]; for (int i = 0; i < a.length; i++) { b[i] = new SPO(a[i]); } // Note: max return is int since upper bound is the array length. return (int) statementStore.addStatements(b, b.length); }
/** * Writes on the statement indices (parallel, batch api). * * @return The elapsed time for the operation. */ public Long call() throws Exception { final long begin = System.currentTimeMillis(); final long n; if (changeLog == null) { n = database.addStatements(statementStore, copyOnly, itr, null/* filter */); } else { n = com.bigdata.rdf.changesets.StatementWriter.addStatements( database, statementStore, copyOnly, null/* filter */, itr, changeLog); } nwritten.addAndGet(n); return System.currentTimeMillis() - begin; }
@Override public Void call() throws Exception { final boolean bindsC = sids | quads; // Build set of distinct ISPOs. final Set<ISPO> b = acceptSolutions(context, bindsC); // Convert into array. final ISPO[] stmts = b.toArray(new ISPO[b.size()]); // Write on the database. final long nmodified = tripleStore.addStatements(stmts, stmts.length); // Increment by the #of statements written. context.getStats().mutationCount.add(nmodified); // done. return null; }
@Override public Void call() throws Exception { final boolean bindsC = sids | quads; // Build set of distinct ISPOs. final Set<ISPO> b = acceptSolutions(context, bindsC); // Convert into array. final ISPO[] stmts = b.toArray(new ISPO[b.size()]); // Write on the database. final long nmodified = tripleStore.addStatements(stmts, stmts.length); // Increment by the #of statements written. context.getStats().mutationCount.add(nmodified); // done. return null; }
.addStatements(sink, false/* copyOnly */, itr, null /* filter */);
}; store.addStatements(a,a.length);
}; store.addStatements(a,a.length);
}; store.addStatements(a,a.length);
StatementEnum.Explicit) }; store.addStatements(told, told.length);
store.addStatements(stmts, stmts.length);
store.addStatements(stmts, stmts.length);
store.addStatements(stmts, stmts.length);