/// <summary> /// Create a pattern context. /// </summary> /// <param name="statementContext">is the statement information and services</param> /// <param name="streamId">is the stream id</param> /// <param name="rootNode">is the pattern root node</param> /// <param name="matchedEventMapMeta"></param> /// <param name="allowResilient"></param> /// <returns>pattern context</returns> public PatternContext CreateContext(StatementContext statementContext, int streamId, EvalRootFactoryNode rootNode, MatchedEventMapMeta matchedEventMapMeta, bool allowResilient) { return(new PatternContext(statementContext, streamId, matchedEventMapMeta, false)); }
/// <summary> /// Constructor. /// </summary> /// <param name="statementContext">is the statement context</param> /// <param name="streamNumber">is the stream number</param> /// <param name="matchedEventMapMeta">The matched event map meta.</param> /// <param name="isResilient">if set to <c>true</c> [is resilient].</param> public PatternContext(StatementContext statementContext, int streamNumber, MatchedEventMapMeta matchedEventMapMeta, bool isResilient) { _streamNumber = streamNumber; _statementContext = statementContext; _matchedEventMapMeta = matchedEventMapMeta; _isResilient = isResilient; }
/// <summary> /// Ctor. /// </summary> /// <param name="filterTypes">the filter one-event types</param> /// <param name="arrayEventTypes">the filter many-event types</param> /// <param name="allTags">All tags.</param> /// <param name="eventAdapterService">for creating wrappers if required</param> public MatchedEventConvertorImpl(ICollection <KeyValuePair <string, Pair <EventType, string> > > filterTypes, ICollection <KeyValuePair <string, Pair <EventType, string> > > arrayEventTypes, IEnumerable <string> allTags, EventAdapterService eventAdapterService) { int size = filterTypes.Count; if (arrayEventTypes != null) { size += arrayEventTypes.Count; } _eventsPerStream = new EventBean[size]; _filterTypes = new LinkedHashMap <String, Pair <EventType, String> >(); _filterTypes.PutAll(filterTypes); _arrayEventTypes = new LinkedHashMap <String, Pair <EventType, String> >(); if (arrayEventTypes != null) { _arrayEventTypes.PutAll(arrayEventTypes); } _matchedEventMapMeta = new MatchedEventMapMeta(allTags.ToArray(), _arrayEventTypes.IsNotEmpty()); }
public MatchedEventMapImpl(MatchedEventMapMeta meta, Object[] matches) { Meta = meta; _matches = matches; }
/// <summary>Constructor creates an empty collection of events. </summary> /// <param name="meta">metadata</param> public MatchedEventMapImpl(MatchedEventMapMeta meta) { Meta = meta; _matches = new Object[meta.TagsPerIndex.Length]; }