private IIndexManager getIndexManager() { final BigdataSailRepository repo = (BigdataSailRepository) this.getRepository(); final IIndexManager indexMgr = repo.getSail().getIndexManager(); return indexMgr; }
@Override public void close() { super.close(); try { if (m_repo.getSail().isOpen()) m_repo.shutDown(); } catch (RepositoryException e) { // Per the API. throw new IllegalStateException(e); } }
/** * 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)); }
@Override public void close() { super.close(); try { if (m_repo.getSail().isOpen()) m_repo.shutDown(); } catch (RepositoryException e) { // Per the API. throw new IllegalStateException(e); } }
/** * Return a connection backed by a read-write transaction. * @throws InterruptedException * * @see BigdataSail#getReadWriteConnection() */ public BigdataSailRepositoryConnection getReadWriteConnection() throws RepositoryException, InterruptedException { try { return new BigdataSailRepositoryConnection(this, getSail().getReadWriteConnection()); } catch (IOException e) { throw new RepositoryException(e); } }
/** * Return a connection backed by a read-write transaction. * @throws InterruptedException * * @see BigdataSail#getReadWriteConnection() */ public BigdataSailRepositoryConnection getReadWriteConnection() throws RepositoryException, InterruptedException { try { return new BigdataSailRepositoryConnection(this, getSail().getReadWriteConnection()); } catch (IOException e) { throw new RepositoryException(e); } }
getSail().getConnection());
backend = ((BigdataSailRepository) delegate).getSail() .getIndexManager();
getSail().getUnisolatedConnection());
getSail().getConnection());
getSail().getUnisolatedConnection());
: ((BigdataSailRepository) testRepository).getSail() .getIndexManager();
m_indexManager = repo.getSail().getIndexManager(); m_server = NanoSparqlServer.newInstance(0/* port */, m_indexManager, initParams);
m_indexManager = repo.getSail().getIndexManager(); m_server = NanoSparqlServer.newInstance(0/* port */, m_indexManager, initParams);
.getSail().getIndexManager());
backend = ((BigdataSailRepository) delegate).getSail() .getIndexManager();
: ((BigdataSailRepository) testRepository).getSail() .getIndexManager();