public List<String> getNamespacesTx(long tx) { if (tx == ITx.READ_COMMITTED && getIndexManager() instanceof IBigdataFederation) { // Use the last commit point for the federation *only*. tx = getIndexManager().getLastCommitTime(); } final SparseRowStore grs = getIndexManager().getGlobalRowStore(tx); if (grs == null) { log.warn("No GRS @ tx=" + TimestampUtility.toString(tx)); // Empty. return Collections.emptyList(); } return grs.getNamespaces(tx); }
public List<String> getNamespacesTx(long tx) { if (tx == ITx.READ_COMMITTED && getIndexManager() instanceof IBigdataFederation) { // Use the last commit point for the federation *only*. tx = getIndexManager().getLastCommitTime(); } final SparseRowStore grs = getIndexManager().getGlobalRowStore(tx); if (grs == null) { log.warn("No GRS @ tx=" + TimestampUtility.toString(tx)); // Empty. return Collections.emptyList(); } return grs.getNamespaces(tx); }
/** * Abort a transaction obtained by {@link #newTx(long)}. This decements the * native active transaction counter for the RWStore. Once that counter * reaches zero, recycling will occur the next time an unisolated mutation * goes through a commit on the journal. * * @param tx * The transaction identifier. */ public void abortTx(final long tx) { if (getIndexManager() instanceof IJournal) { final ITransactionService txs = ((IJournal) getIndexManager()) .getLocalTransactionManager().getTransactionService(); try { txs.abort(tx); } catch (IOException e) { // Note: Local operation. Will not throw IOException. throw new RuntimeException(e); } } }
/** * Commit a transaction obtained by {@link #newTx(long)} * * @param tx * The transaction identifier. * * @see <a href="http://trac.bigdata.com/ticket/1156"> Support read/write * transactions in the REST API</a> */ public void commitTx(final long tx) { if (getIndexManager() instanceof IJournal) { final ITransactionService txs = ((IJournal) getIndexManager()) .getLocalTransactionManager().getTransactionService(); try { txs.commit(tx); } catch (IOException e) { // Note: Local operation. Will not throw IOException. throw new RuntimeException(e); } } }
/** * Abort a transaction obtained by {@link #newTx(long)}. This decements the * native active transaction counter for the RWStore. Once that counter * reaches zero, recycling will occur the next time an unisolated mutation * goes through a commit on the journal. * * @param tx * The transaction identifier. */ public void abortTx(final long tx) { if (getIndexManager() instanceof IJournal) { final ITransactionService txs = ((IJournal) getIndexManager()) .getLocalTransactionManager().getTransactionService(); try { txs.abort(tx); } catch (IOException e) { // Note: Local operation. Will not throw IOException. throw new RuntimeException(e); } } }
/** * Commit a transaction obtained by {@link #newTx(long)} * * @param tx * The transaction identifier. * * @see <a href="http://trac.bigdata.com/ticket/1156"> Support read/write * transactions in the REST API</a> */ public void commitTx(final long tx) { if (getIndexManager() instanceof IJournal) { final ITransactionService txs = ((IJournal) getIndexManager()) .getLocalTransactionManager().getTransactionService(); try { txs.commit(tx); } catch (IOException e) { // Note: Local operation. Will not throw IOException. throw new RuntimeException(e); } } }
if (getIndexManager() instanceof IJournal) { final ITransactionService txs = ((IJournal) getIndexManager()) .getLocalTransactionManager().getTransactionService();
if (getIndexManager() instanceof IJournal) { final ITransactionService txs = ((IJournal) getIndexManager()) .getLocalTransactionManager().getTransactionService();
final AbstractTripleStore tripleStore = (AbstractTripleStore) getIndexManager() .getResourceLocator().locate(namespace, timestamp);
final AbstractTripleStore tripleStore = (AbstractTripleStore) getIndexManager() .getResourceLocator().locate(namespace, timestamp);
.getIndexManager().getResourceLocator() .locate(namespace, timestamp);
.getIndexManager().getResourceLocator() .locate(namespace, timestamp);
final IIndexManager indexManager = context.getIndexManager();
final IIndexManager indexManager = context.getIndexManager();
final AbstractTripleStore kb = (AbstractTripleStore) getBigdataRDFContext().getIndexManager() .getResourceLocator().locate(namespace, ITx.UNISOLATED);
final AbstractTripleStore kb = (AbstractTripleStore) getBigdataRDFContext().getIndexManager() .getResourceLocator().locate(namespace, ITx.UNISOLATED);
.getQueryController(getIndexManager());
.getQueryController(getIndexManager());
.getQueryController(context.getIndexManager());
.getQueryController(context.getIndexManager());