Examples of applyRules()


Examples of com.foundationdb.sql.optimizer.rule.RulesTestContext.applyRules()

        {
            RulesTestContext rulesContext =
                RulesTestContext.create(ais, null, false,
                                        Collections.<BaseRule>singletonList(new ASTStatementLoader()), new Properties());
            PlanContext planContext = new PlanContext(rulesContext, plan);
            rulesContext.applyRules(planContext);
            plan = planContext.getPlan();
        }
        PlanNode duplicate = (PlanNode)plan.duplicate();
        assertFalse(plan == duplicate);
        assertEqualsWithoutHashes(caseName,
View Full Code Here

Examples of lupos.distributed.p2p.rules.HierachialDistributionRulePackage.applyRules()

    AddSubGraphContainerRule.subgraphExecutor = this.subgraphExecutor;
    final DistributedRulePackage rules = new DistributedRulePackage();
    rules.applyRules(root);
   
    HierachialDistributionRulePackage rulePackage = new HierachialDistributionRulePackage();
    rulePackage.applyRules(root);
   
    return ((new Date()).getTime() - a.getTime());
  }
 
  @Override
View Full Code Here

Examples of lupos.distributed.p2p.rules.HierachialDistributionRulePackage.applyRules()

    if(result2!=null){
      result.addAll(result2);
    }
   
    HierachialDistributionRulePackage rulePackage = new HierachialDistributionRulePackage();
    rulePackage.applyRules(root);
    result.add(new DebugContainer<BasicOperatorByteArray>(
        "After HierachialDistributionRulePackage optimization...",
        "optimizingjoinorderRule", BasicOperatorByteArray
        .getBasicOperatorByteArray(root.deepClone(),
            prefixInstance)));
View Full Code Here

Examples of lupos.optimizations.logical.rules.externalontology.ExternalOntologyRuleEngine.applyRules()

            zpm.deleteParents();
            zpm.setParents();
            zpm.detectCycles();
            zpm.sendMessage(new BoundVariablesMessage());
            final ExternalOntologyRuleEngine eore = new ExternalOntologyRuleEngine();
            eore.applyRules(zpm);
          }
        }
      }
    } catch (final InstantiationException e) {
      System.err.println(e);
View Full Code Here

Examples of lupos.optimizations.logical.rules.generated.AfterPhysicalOptimizationDistributedRulePackage.applyRules()

    root.deleteParents();
    root.setParents();
    root.detectCycles();
    //MoveFilter to SubgraphContainer rule
    final AfterPhysicalOptimizationDistributedRulePackage refie = new AfterPhysicalOptimizationDistributedRulePackage();
    refie.applyRules(root);

    // evaluate subgraph!
    final BindingsFactory bindingsFactory= BindingsFactory.createBindingsFactory(CommonCoreQueryEvaluator.getAllVariablesOfQuery(root));
    root.sendMessage(new BindingsFactoryMessage(bindingsFactory));
View Full Code Here

Examples of lupos.optimizations.logical.rules.generated.AfterPhysicalOptimizationRulePackage.applyRules()

    this.root.physicalOptimization();
    this.root.deleteParents();
    this.root.setParents();
    this.root.detectCycles();
    final AfterPhysicalOptimizationRulePackage refie = new AfterPhysicalOptimizationRulePackage();
    refie.applyRules(this.root);
    this.setBindingsVariablesBasedOnOperatorgraph();
    return ((new Date()).getTime() - a.getTime());
  }

  @Override
View Full Code Here

Examples of lupos.optimizations.logical.rules.generated.CorrectOperatorgraphRulePackage.applyRules()

      this.rootNode.deleteParents();
      this.rootNode.setParents();
      this.rootNode.detectCycles();
      this.rootNode.sendMessage(new BoundVariablesMessage());
      final CorrectOperatorgraphRulePackage recog = new CorrectOperatorgraphRulePackage();
      recog.applyRules(this.rootNode);
      if (this.rdfs != RDFS.NONE) {
        for (final PatternMatcher zpm : this.patternMatchers) {
          final RDFSRoot ic = new RDFSRoot();
          if (this.rdfs == RDFS.RDFS || this.rdfs == RDFS.OPTIMIZEDRDFS) {
            if (this.externalOntology != null) {
View Full Code Here

Examples of lupos.optimizations.logical.rules.generated.CorrectOperatorgraphRulePackage.applyRules()

      root_param.deleteParents();
      root_param.setParents();
      final CorrectOperatorgraphRulePackage recog = new CorrectOperatorgraphRulePackage();
      root_param.detectCycles();
      root_param.sendMessage(new BoundVariablesMessage());
      recog.applyRules(root_param);
    }
    return ((new Date()).getTime() - a.getTime());
  }

  @Override
View Full Code Here

Examples of lupos.optimizations.logical.rules.generated.CorrectOperatorgraphRulePackage.applyRules()

          collectionClone.deleteParents();
          collectionClone.setParents();
          collectionClone.detectCycles();
          collectionClone.sendMessage(new BoundVariablesMessage());
          final CorrectOperatorgraphRulePackage recog = new CorrectOperatorgraphRulePackage();
          recog.applyRules(collectionClone);

          filter.getCollectionForExistNodes().put((SimpleNode) n, collectionClone);

          this.indexScanCreator = isc;
        } else {
View Full Code Here

Examples of lupos.optimizations.logical.rules.generated.DistributedRulePackage.applyRules()

    // evaluate rule to identify subgraphs and put them into a SubgraphContainer operator
    AddSubGraphContainerRule.distribution = this.distribution;
    AddSubGraphContainerRule.subgraphExecutor = this.subgraphExecutor;
    final DistributedRulePackage rules = new DistributedRulePackage();
    rules.applyRules(this.rootNode);

    return new Date().getTime() - start;
  }

  @Override
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.