final ValueFactory vf = conn.getBigdataSail().getValueFactory();
final ValueFactory vf = conn.getBigdataSail().getValueFactory();
final ValueFactory vf = conn.getBigdataSail().getValueFactory();
/** * Register an {@link IChangeLog} listener that will manage the maintenance * of the describe cache. */ @Override public void startConnection(final BigdataSailConnection conn) { /** * TODO This really should not be using getCacheConnection() but rather * getExistingCacheConnection(). I need to figure out the pattern that * brings the cache connection into existence and who is responsible for * invoking it. The problem is that there are multiple entry points, * including AST evaluation, the DescribeServlet, and the test suite. * AST2BOpContext does this, but it is not always created before we need * the cache connection. */ final ICacheConnection cacheConn = CacheConnectionFactory .getCacheConnection(conn.getBigdataSail().getQueryEngine()); if (cacheConn == null) { // Cache is not enabled. return; } final AbstractTripleStore tripleStore = conn.getTripleStore(); final IDescribeCache describeCache = cacheConn.getDescribeCache( tripleStore.getNamespace(), tripleStore.getTimestamp()); if (describeCache == null) { // DESCRIBE cache is not enabled. return; } conn.addChangeLog(new DescribeCacheChangeLogListener(describeCache)); }
final ValueFactory vf = conn.getBigdataSail().getValueFactory();
final ValueFactory vf = conn.getBigdataSail().getValueFactory();
final ValueFactory vf = conn.getBigdataSail().getValueFactory();
/** * Register an {@link IChangeLog} listener that will manage the maintenance * of the describe cache. */ @Override public void startConnection(final BigdataSailConnection conn) { /** * TODO This really should not be using getCacheConnection() but rather * getExistingCacheConnection(). I need to figure out the pattern that * brings the cache connection into existence and who is responsible for * invoking it. The problem is that there are multiple entry points, * including AST evaluation, the DescribeServlet, and the test suite. * AST2BOpContext does this, but it is not always created before we need * the cache connection. */ final ICacheConnection cacheConn = CacheConnectionFactory .getCacheConnection(conn.getBigdataSail().getQueryEngine()); if (cacheConn == null) { // Cache is not enabled. return; } final AbstractTripleStore tripleStore = conn.getTripleStore(); final IDescribeCache describeCache = cacheConn.getDescribeCache( tripleStore.getNamespace(), tripleStore.getTimestamp()); if (describeCache == null) { // DESCRIBE cache is not enabled. return; } conn.addChangeLog(new DescribeCacheChangeLogListener(describeCache)); }
/** * @param astContainer * @param db * * @throws SailException */ public AST2BOpUpdateContext(final ASTContainer astContainer, final BigdataSailRepositoryConnection conn) throws SailException { super(astContainer, conn.getTripleStore()); this.conn = conn; this.sail = conn.getSailConnection().getBigdataSail(); this.f = (BigdataValueFactory) sail.getValueFactory(); }
/** * @param astContainer * @param db * * @throws SailException */ public AST2BOpUpdateContext(final ASTContainer astContainer, final BigdataSailRepositoryConnection conn) throws SailException { super(astContainer, conn.getTripleStore()); this.conn = conn; this.sail = conn.getSailConnection().getBigdataSail(); this.f = (BigdataValueFactory) sail.getValueFactory(); }
public BigdataSailGraphLoader(SailConnection cxn) { super(cxn); // Note: Needed for RDR. this.valueFactory = ((BigdataSailConnection) cxn).getBigdataSail() .getValueFactory(); }
public BigdataSailGraphLoader(SailConnection cxn) { super(cxn); // Note: Needed for RDR. this.valueFactory = ((BigdataSailConnection) cxn).getBigdataSail() .getValueFactory(); }