Package lupos.optimizations.logical.rules.generated

Examples of lupos.optimizations.logical.rules.generated.LogicalOptimizationRulePackage


  @Override
  public long logicalOptimization() {
    final Date a = new Date();
    this.setBindingsVariablesBasedOnOperatorgraph();
    final LogicalOptimizationRulePackage refie = new LogicalOptimizationRulePackage();
    refie.applyRules(this.root);
    this.rootNode.sendMessage(new BindingsFactoryMessage(this.bindingsFactory));
    this.root.optimizeJoinOrder(this.opt);
    final LogicalOptimizationRulePackage refie2 = new LogicalOptimizationRulePackage();
    refie2.applyRules(this.root);
    this.parallelOperator(this.root);
    this.rootNode.sendMessage(new BindingsFactoryMessage(this.bindingsFactory));
    return ((new Date()).getTime() - a.getTime());
  }
View Full Code Here


    result.add(new DebugContainer<BasicOperatorByteArray>(
        "Before logical optimization...",
        "logicaloptimizationPackageDescription", BasicOperatorByteArray
        .getBasicOperatorByteArray(this.root.deepClone(),
            prefixInstance)));
    final LogicalOptimizationRulePackage refie = new LogicalOptimizationRulePackage();
    result.addAll(refie.applyRulesDebugByteArray(this.root,
        prefixInstance));
    this.rootNode.sendMessage(new BindingsFactoryMessage(this.bindingsFactory));
    this.root.optimizeJoinOrder(this.opt);
    result.add(new DebugContainer<BasicOperatorByteArray>(
        "After optimizing the join order...",
        "optimizingjoinord;erRule", BasicOperatorByteArray
        .getBasicOperatorByteArray(this.root.deepClone(),
            prefixInstance)));
    final LogicalOptimizationRulePackage refie2 = new LogicalOptimizationRulePackage();
    result.addAll(refie2.applyRulesDebugByteArray(this.root,
        prefixInstance));
    final List<DebugContainer<BasicOperatorByteArray>> ldc = this.parallelOperatorDebugByteArray(
        this.root, prefixInstance);
    if (ldc != null) {
      result.addAll(ldc);
View Full Code Here

  public long logicalOptimization() {
    //do no use DistributedRulePackage if not using Subgraph Submission ...
    if (!useSG) {
      final Date a = new Date();
      this.setBindingsVariablesBasedOnOperatorgraph();
      final LogicalOptimizationRulePackage refie = new LogicalOptimizationRulePackage();
      refie.applyRules(this.root);
      this.root.optimizeJoinOrder(this.opt);
      final LogicalOptimizationRulePackage refie2 = new LogicalOptimizationRulePackage();
      refie2.applyRules(this.root);
      this.parallelOperator(this.root);
      return ((new Date()).getTime() - a.getTime());
    }
    //else use optimization for SG rules
    final Date a = new Date();
    final LogicalOptimizationRulePackage refie = new LogicalOptimizationRulePackage();
    refie.applyRules(root);
    root.optimizeJoinOrder(opt);
    final LogicalOptimizationRulePackage refie2 = new LogicalOptimizationRulePackage();
    refie2.applyRules(root);
    parallelOperator(root);
   
    AddSubGraphContainerRule.distribution = this.distribution;
    AddSubGraphContainerRule.subgraphExecutor = this.subgraphExecutor;
    final DistributedRulePackage rules = new DistributedRulePackage();
View Full Code Here

      result.add(new DebugContainer<BasicOperatorByteArray>(
          "Before logical optimization...",
          "logicaloptimizationPackageDescription", BasicOperatorByteArray
          .getBasicOperatorByteArray(this.root.deepClone(),
              prefixInstance)));
      final LogicalOptimizationRulePackage refie = new LogicalOptimizationRulePackage();
      result.addAll(refie.applyRulesDebugByteArray(this.root,
          prefixInstance));
      this.root.optimizeJoinOrder(this.opt);
      result.add(new DebugContainer<BasicOperatorByteArray>(
          "After optimizing the join order...",
          "optimizingjoinord;erRule", BasicOperatorByteArray
          .getBasicOperatorByteArray(this.root.deepClone(),
              prefixInstance)));
      final LogicalOptimizationRulePackage refie2 = new LogicalOptimizationRulePackage();
      result.addAll(refie2.applyRulesDebugByteArray(this.root,
          prefixInstance));
      final List<DebugContainer<BasicOperatorByteArray>> ldc = this.parallelOperatorDebugByteArray(
          this.root, prefixInstance);
      if (ldc != null) {
        result.addAll(ldc);
      }
      return result;
    }
    final List<DebugContainer<BasicOperatorByteArray>> result = new LinkedList<DebugContainer<BasicOperatorByteArray>>();
    result.add(new DebugContainer<BasicOperatorByteArray>(
        "Before logical optimization...",
        "logicaloptimizationPackageDescription", BasicOperatorByteArray
        .getBasicOperatorByteArray(root.deepClone(),
            prefixInstance)));
    final LogicalOptimizationRulePackage refie = new LogicalOptimizationRulePackage();
    result.addAll(refie.applyRulesDebugByteArray(root,
        prefixInstance));

    root.optimizeJoinOrder(opt);
    result.add(new DebugContainer<BasicOperatorByteArray>(
        "After optimizing the join order...",
        "optimizingjoinorderRule", BasicOperatorByteArray
        .getBasicOperatorByteArray(root.deepClone(),
            prefixInstance)));
    final LogicalOptimizationRulePackage refie2 = new LogicalOptimizationRulePackage();
    result.addAll(refie2.applyRulesDebugByteArray(root,
        prefixInstance));
    final List<DebugContainer<BasicOperatorByteArray>> ldc = parallelOperatorDebugByteArray(
        root, prefixInstance);
   
    if (ldc != null)
View Full Code Here

TOP

Related Classes of lupos.optimizations.logical.rules.generated.LogicalOptimizationRulePackage

Copyright © 2018 www.massapicom. 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.