/** * Return a read-only connection based on the last commit point. This method * is atomic with respect to the commit protocol. * * @return The view. */ public BigdataSailConnection getReadOnlyConnection() { // Note: This is not atomic with respect to the commit protocol. // final long timestamp = database.getIndexManager().getLastCommitTime(); // // return getReadOnlyConnection(timestamp); return getReadOnlyConnection(ITx.READ_COMMITTED); }
/** * Return a read-only connection based on the last commit point. This method * is atomic with respect to the commit protocol. * * @return The view. */ public BigdataSailConnection getReadOnlyConnection() { // Note: This is not atomic with respect to the commit protocol. // final long timestamp = database.getIndexManager().getLastCommitTime(); // // return getReadOnlyConnection(timestamp); return getReadOnlyConnection(ITx.READ_COMMITTED); }
/** * Obtain a read-only connection to the database at the last commit point. A * read-only connection should be used for all pure-readers, as the * connection will not be blocked by concurrent writers. * * @return a read-only connection to the database * * @see BigdataSail#getReadOnlyConnection() */ public BigdataSailRepositoryConnection getReadOnlyConnection() throws RepositoryException { return new BigdataSailRepositoryConnection(this, getSail().getReadOnlyConnection()); }
/** * Obtain a read-only connection to the database from a historical commit * point. A read-only connection should be used for all pure-readers, as the * connection will not be blocked by concurrent writers. * * @return a read-only connection to the database * * @see BigdataSail#getReadOnlyConnection(long) */ public BigdataSailRepositoryConnection getReadOnlyConnection( final long timestamp) throws RepositoryException { return new BigdataSailRepositoryConnection(this, getSail().getReadOnlyConnection(timestamp)); }
/** * Obtain a read-only connection to the database at the last commit point. A * read-only connection should be used for all pure-readers, as the * connection will not be blocked by concurrent writers. * * @return a read-only connection to the database * * @see BigdataSail#getReadOnlyConnection() */ public BigdataSailRepositoryConnection getReadOnlyConnection() throws RepositoryException { return new BigdataSailRepositoryConnection(this, getSail().getReadOnlyConnection()); }
/** * Obtain a read-only connection to the database from a historical commit * point. A read-only connection should be used for all pure-readers, as the * connection will not be blocked by concurrent writers. * * @return a read-only connection to the database * * @see BigdataSail#getReadOnlyConnection(long) */ public BigdataSailRepositoryConnection getReadOnlyConnection( final long timestamp) throws RepositoryException { return new BigdataSailRepositoryConnection(this, getSail().getReadOnlyConnection(timestamp)); }
protected BigdataSailRepositoryConnection getQueryConnection(Repository dataRep) throws Exception { // return dataRep.getConnection(); final BigdataSailRepositoryConnection con = new BigdataSailRepositoryConnection(new BigdataSailRepository( _sail), _sail.getReadOnlyConnection()); // System.err.println(_sail.getDatabase().dumpStore()); return con; }
final BigdataSailConnection rocnxn = sail.getReadOnlyConnection();
final BigdataSailConnection rocnxn = sail.getReadOnlyConnection();
BigdataSailConnection con = null; try { con = sail.getReadOnlyConnection();
protected BigdataSailRepositoryConnection getQueryConnection(Repository dataRep) throws Exception { // return dataRep.getConnection(); final BigdataSailRepositoryConnection con = new BigdataSailRepositoryConnection(new BigdataSailRepository( _sail), _sail.getReadOnlyConnection()); // System.err.println(_sail.getDatabase().dumpStore()); return con; }
final BigdataSailConnection rocnxn = sail.getReadOnlyConnection();
final BigdataSailConnection rocnxn = sail.getReadOnlyConnection();
BigdataSailConnection con = null; try { con = sail.getReadOnlyConnection();
final BigdataSailConnection conn = getGraphFixture().getSail().getReadOnlyConnection();
final BigdataSailConnection conn = getGraphFixture().getSail().getReadOnlyConnection();
final BigdataSailConnection conn = getGraphFixture().getSail().getReadOnlyConnection();
final BigdataSailConnection conn = getGraphFixture().getSail().getReadOnlyConnection();
final BigdataSailConnection conn = getGraphFixture().getSail().getReadOnlyConnection();
final BigdataSailConnection conn = getGraphFixture().getSail().getReadOnlyConnection();