public void SetupTest() { _supportExprNodeFactory = SupportExprNodeFactory.GetInstance(container); _existsNodes = new ExprPropertyExistsNode[2]; _existsNodes[0] = new ExprPropertyExistsNode(); _existsNodes[0].AddChildNode(_supportExprNodeFactory.MakeIdentNode("dummy?", "s0")); _existsNodes[1] = new ExprPropertyExistsNode(); _existsNodes[1].AddChildNode(_supportExprNodeFactory.MakeIdentNode("BoolPrimitive?", "s0")); }
public virtual void SetUpCommon() { container = SupportContainer.Reset(); supportEventTypeFactorySupplier = Suppliers.Memoize(() => SupportEventTypeFactory.GetInstance(container)); supportExprNodeFactorySupplier = Suppliers.Memoize(() => SupportExprNodeFactory.GetInstance(container)); supportDatabaseServiceSupplier = Suppliers.Memoize(() => SupportDatabaseService.GetInstance(container)); supportJoinResultNodeFactorySupplier = Suppliers.Memoize(() => SupportJoinResultNodeFactory.GetInstance(container)); }
public void TestGetPlan() { OuterJoinDesc[] descList = { SupportOuterJoinDescFactory.MakeDesc( container, "IntPrimitive", "s0", "IntBoxed", "s1", OuterJoinType.LEFT) }; var queryGraph = new QueryGraphForge(2, null, false); var plan = QueryPlanBuilder.GetPlan( typesPerStream, new OuterJoinDesc[0], queryGraph, null, new HistoricalViewableDesc(5), dependencyGraph, null, new StreamJoinAnalysisResultCompileTime(2), true, null, null); AssertPlan(plan.Forge); plan = QueryPlanBuilder.GetPlan( typesPerStream, descList, queryGraph, null, new HistoricalViewableDesc(5), dependencyGraph, null, new StreamJoinAnalysisResultCompileTime(2), true, null, null); AssertPlan(plan.Forge); FilterExprAnalyzer.Analyze(SupportExprNodeFactory.GetInstance(container).MakeEqualsNode(), queryGraph, false); plan = QueryPlanBuilder.GetPlan( typesPerStream, descList, queryGraph, null, new HistoricalViewableDesc(5), dependencyGraph, null, new StreamJoinAnalysisResultCompileTime(2), true, null, null); AssertPlan(plan.Forge); plan = QueryPlanBuilder.GetPlan( typesPerStream, new OuterJoinDesc[0], queryGraph, null, new HistoricalViewableDesc(5), dependencyGraph, null, new StreamJoinAnalysisResultCompileTime(2), true, null, null); AssertPlan(plan.Forge); }