public SessionAwareCache<CachedResults> getRsCache() { return dqpCore.getRsCache(); }
public SessionAwareCache<CachedResults> getRsCache() { return dqpCore.getRsCache(); }
public SessionAwareCache<CachedResults> getRsCache() { return dqpCore.getRsCache(); }
this.dataTierManagerImpl.requestMgr.getRsCache().put(cid, determinismLevel, cr, cd.getTtl()); tb = null;
this.dataTierManagerImpl.requestMgr.getRsCache().put(cid, determinismLevel, cr, cd.getTtl()); tb = null;
this.dataTierManagerImpl.requestMgr.getRsCache().put(cid, determinismLevel, cr, cd.getTtl()); tb = null;
ResultsMessage rm = execute(userName, sessionid, reqMsg); assertEquals(10, rm.getResultsList().size()); //$NON-NLS-1$ assertEquals(0, this.core.getRsCache().getCacheHitCount()); assertEquals(10, rm.getResultsList().size()); //$NON-NLS-1$ assertEquals(1, this.core.getRsCache().getCacheHitCount()); assertEquals(10, rm.getResultsList().size()); //$NON-NLS-1$ assertEquals(1, this.core.getRsCache().getCacheHitCount());
assertNull(((CachingTupleSource)ts).dtts.scope); ts.closeSource(); assertEquals(1, this.rm.getRsCache().getCachePutCount()); assertEquals(1, this.rm.getRsCache().getTotalCacheEntries()); assertNull(((CachingTupleSource)ts).dtts.scope); assertEquals(2, this.rm.getRsCache().getCachePutCount()); assertEquals(2, this.rm.getRsCache().getTotalCacheEntries());
@Test public void testCancelWithCaching() throws Exception { QueryMetadataInterface metadata = RealMetadataFactory.exampleBQTCached(); CacheDirective cd = new CacheDirective(); this.connectorManager.cacheDirective = cd; helpSetupDataTierManager(); Command command = helpSetupRequest("SELECT stringkey from bqt1.smalla", 1, metadata).getCommand(); this.context.getSession().setSessionId("different"); RegisterRequestParameter rrp = new RegisterRequestParameter(); rrp.connectorBindingId = "x"; TupleSource ts = dtm.registerRequest(context, command, "foo", rrp); assertTrue(ts instanceof CachingTupleSource); assertEquals(4, pullTuples(ts, 4)); ((CachingTupleSource)ts).item.requestCancel(""); assertEquals(1, connectorManager.getExecuteCount().get()); assertFalse(rrp.doNotCache); ts.closeSource(); //should force read all assertFalse(((CachingTupleSource)ts).dtts.errored); assertNull(((CachingTupleSource)ts).dtts.scope); assertEquals(0, this.rm.getRsCache().getCachePutCount()); }
protected void processNew() throws TeiidProcessingException, TeiidComponentException { planningStart = System.currentTimeMillis(); SessionAwareCache<CachedResults> rsCache = dqpCore.getRsCache();
protected void processNew() throws TeiidProcessingException, TeiidComponentException { planningStart = System.currentTimeMillis(); SessionAwareCache<CachedResults> rsCache = dqpCore.getRsCache();
protected void processNew() throws TeiidProcessingException, TeiidComponentException { planningStart = System.currentTimeMillis(); SessionAwareCache<CachedResults> rsCache = dqpCore.getRsCache();
LogManager.logDetail(LogConstants.CTX_DQP, e, QueryPlugin.Util.getString("failed_to_cache")); //$NON-NLS-1$ dqpCore.getRsCache().put(cid, determinismLevel, cr, originalCommand.getCacheHint() != null?originalCommand.getCacheHint().getTtl():null);
LogManager.logDetail(LogConstants.CTX_DQP, e, QueryPlugin.Util.getString("failed_to_cache")); //$NON-NLS-1$ dqpCore.getRsCache().put(cid, determinismLevel, cr, originalCommand.getCacheHint() != null?originalCommand.getCacheHint().getTtl():null);
LogManager.logDetail(LogConstants.CTX_DQP, e, QueryPlugin.Util.getString("failed_to_cache")); //$NON-NLS-1$ dqpCore.getRsCache().put(cid, determinismLevel, cr, originalCommand.getCacheHint() != null?originalCommand.getCacheHint().getTtl():null);
core.start(config); core.getPrepPlanCache().setModTime(1); core.getRsCache().setTupleBufferCache(bs.getBufferManager());