Пример #1
0
 /// <summary>
 /// Ctor.
 /// </summary>
 /// <param name="getter">for "prev" function access</param>
 /// <param name="meta">general metadata for grouping</param>
 public RegexPartitionStateRepoGroup(RegexPartitionStateRandomAccessGetter getter,
                                     RegexPartitionStateRepoGroupMeta meta,
                                     bool keepScheduleState,
                                     RegexPartitionTerminationStateComparator terminationStateCompare)
 {
     _getter = getter;
     _meta   = meta;
     _states = new NullableDictionary <Object, RegexPartitionStateImpl>();
     _optionalIntervalSchedules = keepScheduleState ? new RegexPartitionStateRepoScheduleStateImpl(terminationStateCompare) : null;
 }
Пример #2
0
 public RegexPartitionStateRepo MakePartitioned(RegexPartitionStateRandomAccessGetter prevGetter, RegexPartitionStateRepoGroupMeta stateRepoGroupMeta, AgentInstanceContext agentInstanceContext, EventRowRegexNFAView view, bool keepScheduleState, RegexPartitionTerminationStateComparator terminationStateCompare)
 {
     return(new RegexPartitionStateRepoGroup(prevGetter, stateRepoGroupMeta, keepScheduleState, terminationStateCompare));
 }
Пример #3
0
 public RegexPartitionStateRepoScheduleStateImpl(RegexPartitionTerminationStateComparator terminationStateCompare)
 {
     this.terminationStateCompare = terminationStateCompare;
 }
 /// <summary>
 /// Ctor.
 /// </summary>
 /// <param name="getter">The getter.</param>
 /// <param name="keepScheduleState">if set to <c>true</c> [keep schedule state].</param>
 /// <param name="terminationStateCompare">The termination state compare.</param>
 public RegexPartitionStateRepoNoGroup(RegexPartitionStateRandomAccessGetter getter, bool keepScheduleState, RegexPartitionTerminationStateComparator terminationStateCompare)
 {
     _singletonState            = new RegexPartitionStateImpl(getter, new List <RegexNFAStateEntry>());
     _optionalIntervalSchedules = keepScheduleState ? new RegexPartitionStateRepoScheduleStateImpl(terminationStateCompare) : null;
 }