Exemple #1
0
        /// <summary>
        /// Ctor.
        /// </summary>
        /// <param name="sortWindowViewFactory">for copying this view in a group-by</param>
        /// <param name="sortCriteriaExpressions">is the event property names to sort</param>
        /// <param name="sortCriteriaEvaluators">The sort criteria evaluators.</param>
        /// <param name="descendingValues">indicates whether to sort ascending or descending for each field</param>
        /// <param name="sortWindowSize">is the window size</param>
        /// <param name="optionalSortedRandomAccess">is the friend class handling the random access, if required byexpressions</param>
        /// <param name="isSortUsingCollator">for string value sorting using compare or Collator</param>
        /// <param name="agentInstanceViewFactoryContext">The agent instance view factory context.</param>
        public SortWindowView(SortWindowViewFactory sortWindowViewFactory,
                              ExprNode[] sortCriteriaExpressions,
                              ExprEvaluator[] sortCriteriaEvaluators,
                              bool[] descendingValues,
                              int sortWindowSize,
                              IStreamSortRankRandomAccess optionalSortedRandomAccess,
                              bool isSortUsingCollator,
                              AgentInstanceViewFactoryChainContext agentInstanceViewFactoryContext)
        {
            _sortWindowViewFactory          = sortWindowViewFactory;
            _sortCriteriaExpressions        = sortCriteriaExpressions;
            _sortCriteriaEvaluators         = sortCriteriaEvaluators;
            _isDescendingValues             = descendingValues;
            _sortWindowSize                 = sortWindowSize;
            _optionalSortedRandomAccess     = optionalSortedRandomAccess;
            AgentInstanceViewFactoryContext = agentInstanceViewFactoryContext;

            var comparator = CollectionUtil.GetComparator(sortCriteriaEvaluators, isSortUsingCollator, _isDescendingValues);

            _sortedEvents = new OrderedDictionary <Object, Object>(comparator);
        }
Exemple #2
0
 public void SetUp()
 {
     _factory = new SortWindowViewFactory();
 }
 public void SetUp()
 {
     _container = SupportContainer.Reset();
     _factory   = new SortWindowViewFactory();
 }