public ResultSetProcessorRowPerGroupRollupOutputAllHelper(ResultSetProcessorRowPerGroupRollup processor, int levelCount)
 {
     _processor = processor;
     _groupRepsOutputLastUnordRStream = new LinkedHashMap <object, EventBean> [levelCount];
     for (var i = 0; i < levelCount; i++)
     {
         _groupRepsOutputLastUnordRStream[i] = new LinkedHashMap <object, EventBean>();
     }
 }
 public ResultSetProcessorRowPerGroupRollupUnboundHelper MakeRSRowPerGroupRollupSnapshotUnbound(
     AgentInstanceContext agentInstanceContext,
     ResultSetProcessorRowPerGroupRollup resultSetProcessorRowPerGroupRollup,
     Type[] groupKeyTypes,
     int numStreams,
     EventType[] eventTypes)
 {
     var levelCount = resultSetProcessorRowPerGroupRollup.GroupByRollupDesc.Levels.Length;
     return new ResultSetProcessorRowPerGroupRollupUnboundHelperImpl(levelCount);
 }
 public ResultSetProcessorRowPerGroupRollupOutputAllHelper MakeRSRowPerGroupRollupAll(
     AgentInstanceContext agentInstanceContext,
     ResultSetProcessorRowPerGroupRollup resultSetProcessorRowPerGroupRollup,
     Type[] groupKeyTypes,
     EventType[] eventTypes)
 {
     return new ResultSetProcessorRowPerGroupRollupOutputAllHelperImpl(
         resultSetProcessorRowPerGroupRollup,
         resultSetProcessorRowPerGroupRollup.GroupByRollupDesc.Levels.Length);
 }
        public ResultSetProcessorRowPerGroupRollupOutputAllHelperImpl(
            ResultSetProcessorRowPerGroupRollup processor,
            int levelCount)
        {
            this.processor = processor;

            outputLimitGroupRepsPerLevel = new LinkedHashMap<object, EventBean[]>[levelCount];
            for (var i = 0; i < levelCount; i++) {
                outputLimitGroupRepsPerLevel[i] = new LinkedHashMap<object, EventBean[]>();
            }

            if (processor.IsSelectRStream) {
                groupRepsOutputLastUnordRStream = new LinkedHashMap<object, EventBean>[levelCount];
                for (var i = 0; i < levelCount; i++) {
                    groupRepsOutputLastUnordRStream[i] = new LinkedHashMap<object, EventBean>();
                }
            }
            else {
                groupRepsOutputLastUnordRStream = null;
            }
        }
Ejemplo n.º 5
0
        public ResultSetProcessorRowPerGroupRollupOutputLastHelperImpl(ResultSetProcessorRowPerGroupRollup processor, int levelCount)
        {
            _processor = processor;

            _outputLimitGroupRepsPerLevel = new IDictionary <object, EventBean[]> [levelCount];
            for (var i = 0; i < levelCount; i++)
            {
                _outputLimitGroupRepsPerLevel[i] = new Dictionary <object, EventBean[]>().WithNullSupport();
            }

            if (processor.Prototype.IsSelectRStream)
            {
                _groupRepsOutputLastUnordRStream = new IDictionary <object, EventBean> [levelCount];
                for (var i = 0; i < levelCount; i++)
                {
                    _groupRepsOutputLastUnordRStream[i] = new Dictionary <object, EventBean>().WithNullSupport();
                }
            }
            else
            {
                _groupRepsOutputLastUnordRStream = null;
            }
        }
 public ResultSetProcessorRowPerGroupRollupOutputAllHelper MakeRSRowPerGroupRollupAll(AgentInstanceContext agentInstanceContext, ResultSetProcessorRowPerGroupRollup resultSetProcessorRowPerGroupRollup, ResultSetProcessorRowPerGroupRollupFactory prototype)
 {
     return(new ResultSetProcessorRowPerGroupRollupOutputAllHelperImpl(resultSetProcessorRowPerGroupRollup, prototype.GroupByRollupDesc.Levels.Length));
 }