Exemple #1
0
 public void Init(
     ViewFactoryContext viewFactoryContext,
     EPStatementInitServices services)
 {
     try {
         eventBeanFactory = EventTypeUtility.GetFactoryForType(
             EventType,
             services.EventBeanTypedEventFactory,
             services.EventTypeAvroHandler);
         var factoryContext = new VirtualDataWindowFactoryContext(
             EventType,
             Parameters,
             ParameterExpressions,
             NamedWindowName,
             CompileTimeConfiguration,
             viewFactoryContext,
             services);
         Factory.Initialize(factoryContext);
     }
     catch (Exception ex) {
         throw new EPException(
             "Validation exception initializing virtual data window '" + NamedWindowName + "': " + ex.Message,
             ex);
     }
 }
Exemple #2
0
 public ContainedEventEvalExprNode(
     ExprEvaluator evaluator,
     EventType eventType,
     EPStatementInitServices initServices)
 {
     this.evaluator = evaluator;
     this.eventBeanFactory = EventTypeUtility.GetFactoryForType(
         eventType,
         initServices.EventBeanTypedEventFactory,
         initServices.EventTypeAvroHandler);
 }