Ejemplo n.º 1
0
        public NamedWindowRootViewInstance(
            NamedWindowRootView rootView,
            AgentInstanceContext agentInstanceContext,
            EventTableIndexMetadata eventTableIndexMetadata)
        {
            this.rootView = rootView;
            AgentInstanceContext = agentInstanceContext;

            IndexRepository = new EventTableIndexRepository(eventTableIndexMetadata);
            foreach (var entry in eventTableIndexMetadata.Indexes
            ) {
                if (entry.Value.OptionalQueryPlanIndexItem != null) {
                    var index = EventTableUtil.BuildIndex(
                        agentInstanceContext,
                        0,
                        entry.Value.OptionalQueryPlanIndexItem,
                        rootView.EventType,
                        true,
                        entry.Key.IsUnique,
                        entry.Value.OptionalIndexName,
                        null,
                        false);
                    IndexRepository.AddIndex(
                        entry.Key,
                        new EventTableIndexRepositoryEntry(
                            entry.Value.OptionalIndexName,
                            entry.Value.OptionalIndexModuleName,
                            index));
                }
            }
        }
Ejemplo n.º 2
0
 public NamedWindowImpl(
     NamedWindowMetaData metadata,
     EPStatementInitServices services)
 {
     rootView = new NamedWindowRootView(metadata);
     eventTableIndexMetadataRepo = metadata.IndexMetadata;
     tailView = services.NamedWindowFactoryService.CreateNamedWindowTailView(
         metadata.EventType,
         metadata.IsChildBatching,
         services,
         metadata.ContextName);
 }