/** * Obtain a view of the default KB instance as of the last commit time on * the database. */ public BigdataGraphAccessor(final IIndexManager indexManager) { this(indexManager, BigdataSail.Options.DEFAULT_NAMESPACE, indexManager.getLastCommitTime()); }
/** * Obtain a view of the default KB instance as of the last commit time on * the database. */ public BigdataGraphAccessor(final IIndexManager indexManager) { this(indexManager, BigdataSail.Options.DEFAULT_NAMESPACE, indexManager.getLastCommitTime()); }
@Override public long getLastCommitTime() { return delegate.getLastCommitTime(); }
@Override public long getLastCommitTime() { return delegate.getLastCommitTime(); }
revisionTimestamp = indexManager.getLastCommitTime() + 1;
revisionTimestamp = indexManager.getLastCommitTime() + 1;
private AbstractTripleStore resolveKB() { long timestamp = this.timestamp; if (timestamp == ITx.READ_COMMITTED) { /** * Note: This code is request the view as of the the last commit * time. If we use ITx.READ_COMMITTED here then it will cause * the Journal to provide us with a ReadCommittedIndex and that * has a synchronization hot spot! */ timestamp = indexManager.getLastCommitTime(); } final AbstractTripleStore kb = (AbstractTripleStore) indexManager .getResourceLocator().locate(namespace, timestamp); if (kb == null) { throw new RuntimeException("Not found: namespace=" + namespace + ", timestamp=" + TimestampUtility.toString(timestamp)); } return kb; }
private AbstractTripleStore resolveKB() { long timestamp = this.timestamp; if (timestamp == ITx.READ_COMMITTED) { /** * Note: This code is request the view as of the the last commit * time. If we use ITx.READ_COMMITTED here then it will cause * the Journal to provide us with a ReadCommittedIndex and that * has a synchronization hot spot! */ timestamp = indexManager.getLastCommitTime(); } final AbstractTripleStore kb = (AbstractTripleStore) indexManager .getResourceLocator().locate(namespace, timestamp); if (kb == null) { throw new RuntimeException("Not found: namespace=" + namespace + ", timestamp=" + TimestampUtility.toString(timestamp)); } return kb; }
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); }
/** * Return the object used to access the as-configured graph. */ private IGraphAccessor newGraphAccessor(final AbstractTripleStore kb) { /* * Use a read-only view (sampling depends on access to the BTree rather * than the ReadCommittedIndex). */ final BigdataGraphAccessor graphAccessor = new BigdataGraphAccessor( kb.getIndexManager(), kb.getNamespace(), kb .getIndexManager().getLastCommitTime()); return graphAccessor; }
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); }
/** * Return the object used to access the as-configured graph. */ private IGraphAccessor newGraphAccessor(final AbstractTripleStore kb) { /* * Use a read-only view (sampling depends on access to the BTree rather * than the ReadCommittedIndex). */ final BigdataGraphAccessor graphAccessor = new BigdataGraphAccessor( kb.getIndexManager(), kb.getNamespace(), kb .getIndexManager().getLastCommitTime()); return graphAccessor; }
final long lastCommitTime = indexManager.getLastCommitTime();
final long lastCommitTime = store.getIndexManager().getLastCommitTime(); .getLastCommitTime()); store.getIndexManager().getLastCommitTime()).isEmpty());
final long lastCommitTime = store.getIndexManager().getLastCommitTime(); .getLastCommitTime()); store.getIndexManager().getLastCommitTime()).isEmpty());
final long lastCommitTime = store.getIndexManager().getLastCommitTime(); .getLastCommitTime()); store.getIndexManager().getLastCommitTime()).isEmpty());
store.getNamespace(), TimestampUtility.asHistoricalRead(store .getIndexManager().getLastCommitTime()));
store.getNamespace(), TimestampUtility.asHistoricalRead(store .getIndexManager().getLastCommitTime()));
store.getNamespace(), TimestampUtility.asHistoricalRead(store .getIndexManager().getLastCommitTime()));
.getLastCommitTime() + 1; .getLastCommitTime() + 1;