示例#1
0
        public SummarizeOperator(string summarize)
        {
            scalarSummarizer = ParseExpressionKusto(summarize) as ScalarSummarizer;
            ParseGroupings();

            _aggregations = new DimensionIndex <IDictionary <string, object> >();
        }
示例#2
0
        private void Flush()
        {
            int itemCounter = 0;

            foreach (var cell in _aggregations.GetAllCells())
            {
                itemCounter++;
                _subject.OnNext(cell.Value);
            }

            _aggregations = new DimensionIndex <IDictionary <string, object> >();

            // Calculate Next Flush Target
            _flushTarget = _flushTarget.AddTicks(_duration.Ticks);
        }