public static PriorEventViewFactory getPriorEventViewFactory( StatementContext statementContext, int streamNum, int viewFactoryNum, boolean unboundStream) { try { String namespace = ViewEnum.PRIOR_EVENT_VIEW.getNamespace(); String name = ViewEnum.PRIOR_EVENT_VIEW.getName(); ViewFactory factory = statementContext.getViewResolutionService().create(namespace, name); ViewFactoryContext context = new ViewFactoryContext(statementContext, streamNum, viewFactoryNum, namespace, name); factory.setViewParameters( context, Arrays.asList((ExprNode) new ExprConstantNodeImpl(unboundStream))); return (PriorEventViewFactory) factory; } catch (ViewProcessingException ex) { String text = "Exception creating prior event view factory"; throw new EPException(text, ex); } catch (ViewParameterException ex) { String text = "Exception creating prior event view factory"; throw new EPException(text, ex); } }
public final String toString() { return this.getClass().getName() + " groupFieldNames=" + Arrays.toString(criteriaExpressions); }