Esempio n. 1
0
        public static void Validate1StreamMD(ExprNode topNode)
        {
            var eventType = SupportEventTypeFactory.CreateBeanType(typeof(SupportMarketDataBean));
            StreamTypeService streamTypeService = new StreamTypeServiceImpl(eventType, "s0", false, "uri");

            ExprNodeUtility.GetValidatedSubtree(ExprNodeOrigin.SELECT, topNode, ExprValidationContextFactory.Make(streamTypeService));
        }
Esempio n. 2
0
        public static OuterJoinDesc MakeDesc(String propOne, String streamOne, String propTwo, String streamTwo, OuterJoinType type)
        {
            ExprIdentNode identNodeOne = new ExprIdentNodeImpl(propOne, streamOne);
            ExprIdentNode identNodeTwo = new ExprIdentNodeImpl(propTwo, streamTwo);

            ExprValidationContext context = ExprValidationContextFactory.Make(new SupportStreamTypeSvc3Stream());

            identNodeOne.Validate(context);
            identNodeTwo.Validate(context);
            OuterJoinDesc desc = new OuterJoinDesc(type, identNodeOne, identNodeTwo, null, null);

            return(desc);
        }