TeiidProcessingException { if (dtts.scope == Scope.NONE || tb == null) { removeTupleBuffer(); return ts.nextTuple(); synchronized (cd) { if (dtts.scope == Scope.NONE) { removeTupleBuffer(); return tuple; Determinism determinismLevel = getDeterminismLevel(this.dtts.scope); this.dataTierManagerImpl.requestMgr.getRsCache().put(cid, determinismLevel, cr, cd.getTtl()); tb = null;
List<?> tuple = nextTuple(); if (tuple == null) { break; removeTupleBuffer(); ts.closeSource();
workItem.getRsCache().remove(cid, CachingTupleSource.getDeterminismLevel(cd.getScope())); if (cid != null) { tb = getBufferManager().createTupleBuffer(aqr.getCommand().getProjectedSymbols(), aqr.getCommandContext().getConnectionId(), TupleSourceType.PROCESSOR); result = new CachingTupleSource(this, tb, (DataTierTupleSource)result, cid, parameterObject, cd, accessedGroups, workItem);
@Test public void testCachingScope() throws Exception { assertEquals(Determinism.SESSION_DETERMINISTIC, CachingTupleSource.getDeterminismLevel(Scope.SESSION)); assertEquals(Determinism.SESSION_DETERMINISTIC, CachingTupleSource.getDeterminismLevel(Scope.NONE)); assertEquals(Determinism.USER_DETERMINISTIC, CachingTupleSource.getDeterminismLevel(Scope.USER)); assertEquals(Determinism.VDB_DETERMINISTIC, CachingTupleSource.getDeterminismLevel(Scope.VDB)); }
workItem.getRsCache().remove(cid, CachingTupleSource.getDeterminismLevel(cd.getScope())); if (cid != null) { tb = getBufferManager().createTupleBuffer(aqr.getCommand().getProjectedSymbols(), aqr.getCommandContext().getConnectionId(), TupleSourceType.PROCESSOR); result = new CachingTupleSource(this, tb, (DataTierTupleSource)result, cid, parameterObject, cd, accessedGroups, workItem);
void receiveResults(AtomicResultsMessage response, boolean partial) { this.arm = response; this.scope = response.getScope(); if (this.scope != null) { this.aqr.getCommandContext().setDeterminismLevel(CachingTupleSource.getDeterminismLevel(this.scope)); } explicitClose |= !arm.supportsImplicitClose(); rowsProcessed += response.getResults().length; index = 0; if (response.getWarnings() != null) { for (Exception warning : response.getWarnings()) { SourceWarning sourceFailure = new SourceWarning(this.aqr.getModelName(), aqr.getConnectorName(), warning, partial); this.aqr.getCommandContext().addWarning(sourceFailure); } } if (response.getFinalRow() >= 0) { done = true; } }
TeiidProcessingException { if (dtts.scope == Scope.NONE || tb == null) { removeTupleBuffer(); return ts.nextTuple(); synchronized (cd) { if (dtts.scope == Scope.NONE) { removeTupleBuffer(); return tuple; Determinism determinismLevel = getDeterminismLevel(this.dtts.scope); this.dataTierManagerImpl.requestMgr.getRsCache().put(cid, determinismLevel, cr, cd.getTtl()); tb = null;
workItem.getRsCache().remove(cid, CachingTupleSource.getDeterminismLevel(cd.getScope())); if (cid != null) { tb = getBufferManager().createTupleBuffer(aqr.getCommand().getProjectedSymbols(), aqr.getCommandContext().getConnectionId(), TupleSourceType.PROCESSOR); result = new CachingTupleSource(this, tb, (DataTierTupleSource)result, cid, parameterObject, cd, accessedGroups, workItem);
List<?> tuple = nextTuple(); if (tuple == null) { break; removeTupleBuffer(); ts.closeSource();
void receiveResults(AtomicResultsMessage response, boolean partial) { this.arm = response; this.scope = response.getScope(); if (this.scope != null) { this.aqr.getCommandContext().setDeterminismLevel(CachingTupleSource.getDeterminismLevel(this.scope)); } explicitClose |= !arm.supportsImplicitClose(); rowsProcessed += response.getResults().length; index = 0; if (response.getWarnings() != null) { for (Exception warning : response.getWarnings()) { SourceWarning sourceFailure = new SourceWarning(this.aqr.getModelName(), aqr.getConnectorName(), warning, partial); this.aqr.getCommandContext().addWarning(sourceFailure); } } if (response.getFinalRow() >= 0) { done = true; } }
TeiidProcessingException { if (dtts.scope == Scope.NONE || tb == null) { removeTupleBuffer(); return ts.nextTuple(); synchronized (cd) { if (dtts.scope == Scope.NONE) { removeTupleBuffer(); return tuple; Determinism determinismLevel = getDeterminismLevel(this.dtts.scope); this.dataTierManagerImpl.requestMgr.getRsCache().put(cid, determinismLevel, cr, cd.getTtl()); tb = null;
List<?> tuple = nextTuple(); if (tuple == null) { break; removeTupleBuffer(); ts.closeSource();
void receiveResults(AtomicResultsMessage response, boolean partial) { this.arm = response; this.scope = response.getScope(); if (this.scope != null) { this.aqr.getCommandContext().setDeterminismLevel(CachingTupleSource.getDeterminismLevel(this.scope)); } explicitClose |= !arm.supportsImplicitClose(); rowsProcessed += response.getResults().length; index = 0; if (response.getWarnings() != null) { for (Exception warning : response.getWarnings()) { SourceWarning sourceFailure = new SourceWarning(this.aqr.getModelName(), aqr.getConnectorName(), warning, partial); this.aqr.getCommandContext().addWarning(sourceFailure); } } if (response.getFinalRow() >= 0) { done = true; } }