public StatementResourceHolder DeallocateUnpartitioned() { StatementResourceHolder unpartitioned = ResourcesUnpartitioned; ResourcesUnpartitioned = null; return(unpartitioned); }
public static StatementResourceHolder PopulateHolder(StatementAgentInstanceFactoryResult startResult) { StatementResourceHolder holder = new StatementResourceHolder(startResult.AgentInstanceContext); if (startResult is StatementAgentInstanceFactorySelectResult) { StatementAgentInstanceFactorySelectResult selectResult = (StatementAgentInstanceFactorySelectResult)startResult; holder.TopViewables = selectResult.TopViews; holder.EventStreamViewables = selectResult.EventStreamViewables; holder.PatternRoots = selectResult.PatternRoots; holder.AggregationService = selectResult.OptionalAggegationService; holder.SubselectStrategies = selectResult.SubselectStrategies; holder.PostLoad = selectResult.OptionalPostLoadJoin; } else if (startResult is StatementAgentInstanceFactoryCreateWindowResult) { StatementAgentInstanceFactoryCreateWindowResult createResult = (StatementAgentInstanceFactoryCreateWindowResult)startResult; holder.TopViewables = new Viewable[] { createResult.TopView }; holder.PostLoad = createResult.PostLoad; holder.NamedWindowProcessorInstance = createResult.ProcessorInstance; } else if (startResult is StatementAgentInstanceFactoryCreateTableResult) { StatementAgentInstanceFactoryCreateTableResult createResult = (StatementAgentInstanceFactoryCreateTableResult)startResult; holder.TopViewables = new Viewable[] { createResult.FinalView }; holder.AggregationService = createResult.OptionalAggegationService; } else if (startResult is StatementAgentInstanceFactoryOnTriggerResult) { StatementAgentInstanceFactoryOnTriggerResult onTriggerResult = (StatementAgentInstanceFactoryOnTriggerResult)startResult; holder.PatternRoots = new EvalRootState[] { onTriggerResult.OptPatternRoot }; holder.AggregationService = onTriggerResult.OptionalAggegationService; holder.SubselectStrategies = onTriggerResult.SubselectStrategies; } return(holder); }
public void SetPartitioned(int agentInstanceId, StatementResourceHolder statementResourceHolder) { ResourcesPartitioned.Put(agentInstanceId, statementResourceHolder); }