private void writeObject(java.io.ObjectOutputStream out) throws IOException { externalNames = initExternalList(externalNames, objectsAccessed); out.defaultWriteObject(); }
/** * Set the ProcessorPlan. * @param context */ public void setPlan(ProcessorPlan planValue, CommandContext context){ plan = planValue; this.accessInfo.populate(context, false); //TODO: expand this logic if (planValue instanceof RelationalPlan) { RelationalPlan rp = (RelationalPlan)planValue; if (rp.getRootNode() instanceof AccessNode) { this.accessInfo.setSensitiveToMetadataChanges(false); } } }
public boolean validate() { return this.accessInfo.validate(false, 0); }
if (accessedGroups != null) { for (GroupSymbol gs : accessedGroups) { cr.getAccessInfo().addAccessedObject(gs.getMetadataID()); cr.getAccessInfo().setSensitiveToMetadataChanges(false);
cr.getAccessInfo().setSensitiveToMetadataChanges(false); cr.getAccessInfo().getObjectsAccessed().clear();
assertEquals(Long.valueOf(1), cache.computeTtl(id, result, 1l)); AccessInfo ai = new AccessInfo(); Mockito.stub(result.getAccessInfo()).toReturn(ai); ai.addAccessedObject(t); t1.setParent(s); s.setProperty(DataModifiable.DATA_TTL, "0"); ai.addAccessedObject(t1);
return ttl; Set<Object> objects = info.getObjectsAccessed(); if (objects == null) { return ttl;
public void setResults(TupleBuffer results, ProcessorPlan plan) { this.results = results; this.uuid = results.getId(); this.hasLobs = results.isLobs(); if (plan != null) { this.accessInfo.populate(plan.getContext(), true); } }
@Override public synchronized boolean restore(TupleBufferCache bufferManager) { if (this.results == null) { if (this.hasLobs) { return false; //the lob store is local only and not distributed } TupleBuffer buffer = bufferManager.getTupleBuffer(this.uuid); if (buffer != null) { this.results = buffer; } try { this.accessInfo.restore(); } catch (TeiidException e) { LogManager.logWarning(LogConstants.CTX_DQP, e, QueryPlugin.Util.gs(QueryPlugin.Event.TEIID30025)); return false; } } return (this.results != null); }
results.setCommand(new Query()); long ts = results.getAccessInfo().getCreationTime(); assertTrue(ts - cachedResults.getAccessInfo().getCreationTime() <= 5000);
if (accessedGroups != null) { for (GroupSymbol gs : accessedGroups) { cr.getAccessInfo().addAccessedObject(gs.getMetadataID()); cr.getAccessInfo().setSensitiveToMetadataChanges(false);
cr.getAccessInfo().setSensitiveToMetadataChanges(false); cr.getAccessInfo().getObjectsAccessed().clear();
return ttl; Set<Object> objects = info.getObjectsAccessed(); if (objects == null) { return ttl;
public void setResults(TupleBuffer results, ProcessorPlan plan) { this.results = results; this.uuid = results.getId(); this.hasLobs = results.isLobs(); if (plan != null) { this.accessInfo.populate(plan.getContext(), true); } }
@Override public synchronized boolean restore(TupleBufferCache bufferManager) { if (this.results == null) { if (this.hasLobs) { return false; //the lob store is local only and not distributed } TupleBuffer buffer = bufferManager.getTupleBuffer(this.uuid); if (buffer != null) { this.results = buffer; } try { this.accessInfo.restore(); } catch (TeiidException e) { LogManager.logWarning(LogConstants.CTX_DQP, e, QueryPlugin.Util.gs(QueryPlugin.Event.TEIID30025)); return false; } } return (this.results != null); }
if (accessedGroups != null) { for (GroupSymbol gs : accessedGroups) { cr.getAccessInfo().addAccessedObject(gs.getMetadataID()); cr.getAccessInfo().setSensitiveToMetadataChanges(false);
/** * Set the ProcessorPlan. * @param context */ public void setPlan(ProcessorPlan planValue, CommandContext context){ plan = planValue; this.accessInfo.populate(context, false); //TODO: expand this logic if (planValue instanceof RelationalPlan) { RelationalPlan rp = (RelationalPlan)planValue; if (rp.getRootNode() instanceof AccessNode) { this.accessInfo.setSensitiveToMetadataChanges(false); } } }
cr.getAccessInfo().setSensitiveToMetadataChanges(false); cr.getAccessInfo().getObjectsAccessed().clear();
public boolean validate() { return this.accessInfo.validate(false, 0); }
return ttl; Set<Object> objects = info.getObjectsAccessed(); if (objects == null) { return ttl;