@Override
protected Iteration<? extends Statement, ? extends RepositoryException> createIteration() throws RepositoryException {
try {
return databaseConnection.listTriplesSnapshot(rsubj, rpred, robj, context, includeInferred, snapshotDate);
} catch (SQLException e) {
throw new RepositoryException("database error while listing triples",e);
}
}
});
}
} else {
iterations.add(new DelayedIteration<Statement, RepositoryException>() {
@Override
protected Iteration<? extends Statement, ? extends RepositoryException> createIteration() throws RepositoryException {
try {
return databaseConnection.listTriplesSnapshot(rsubj, rpred, robj, null, includeInferred, snapshotDate);
} catch (SQLException e) {
throw new RepositoryException("database error while listing triples",e);
}
}
});
}