@Override final public BigdataStatement getStatement(final Resource s, final URI p, final Value o, final Resource c) { if (s == null || p == null || o == null || (quads && c == null)) { throw new IllegalArgumentException(); } final BigdataStatementIterator itr = getStatements(s, p, o, c); try { if (!itr.hasNext()) { return null; } return itr.next(); } finally { itr.close(); } }
@Override final public BigdataStatement getStatement(final Resource s, final URI p, final Value o, final Resource c) { if (s == null || p == null || o == null || (quads && c == null)) { throw new IllegalArgumentException(); } final BigdataStatementIterator itr = getStatements(s, p, o, c); try { if (!itr.hasNext()) { return null; } return itr.next(); } finally { itr.close(); } }
/** * Dumps the access path, efficiently resolving term identifiers to terms. * * @param accessPath */ public StringBuilder dumpStatements(final IAccessPath<ISPO> accessPath) { final StringBuilder sb = new StringBuilder(); final BigdataStatementIterator itr = asStatementIterator(accessPath .iterator()); try { while(itr.hasNext()) { sb.append("\n"+itr.next()); } return sb; } finally { itr.close(); } }
/** * Dumps the access path, efficiently resolving term identifiers to terms. * * @param accessPath */ public StringBuilder dumpStatements(final IAccessPath<ISPO> accessPath) { final StringBuilder sb = new StringBuilder(); final BigdataStatementIterator itr = asStatementIterator(accessPath .iterator()); try { while(itr.hasNext()) { sb.append("\n"+itr.next()); } return sb; } finally { itr.close(); } }
public Void call() throws Exception { try { while (itr2.hasNext()) { // a statement from the source db. final BigdataStatement stmt = itr2.next(); // if (log.isInfoEnabled()) log.info("Source: " // + stmt); // add to the buffer. sb.add(stmt); } } finally { itr2.close(); } /* * Flush everything in the StatementBuffer so that it * shows up in the BlockingBuffer's iterator(). */ final long nnotFound = sb.flush(); if (log.isInfoEnabled()) log.info("Flushed: #notFound=" + nnotFound); return null; }
public Void call() throws Exception { try { while (itr2.hasNext()) { // a statement from the source db. final BigdataStatement stmt = itr2.next(); // if (log.isInfoEnabled()) log.info("Source: " // + stmt); // add to the buffer. sb.add(stmt); } } finally { itr2.close(); } /* * Flush everything in the StatementBuffer so that it * shows up in the BlockingBuffer's iterator(). */ final long nnotFound = sb.flush(); if (log.isInfoEnabled()) log.info("Flushed: #notFound=" + nnotFound); return null; }
final BigdataStatement stmt = it.next();
final BigdataStatement stmt = it.next();
final BigdataStatement stmt = it.next(); materialized.add(new ChangeRecord(stmt, rec.getChangeAction()));
final BigdataStatement stmt = itr2.next();
final BigdataStatement stmt = itr2.next();
Statement g = actual.next();
Statement g = actual.next();
Statement g = actual.next();
iter.next();
iter.next();