Examples of OperatorCost


Examples of org.apache.drill.exec.physical.OperatorCost

    return "Screen [endpoint=" + endpoint + ", getChild()=" + getChild() + "]";
  }

  @Override
  public OperatorCost getCost() {
    return new OperatorCost(0, 0, 1000, child.getSize().getRecordCount());
  }
View Full Code Here

Examples of org.apache.drill.exec.physical.OperatorCost

    return physicalVisitor.visitProject(this, value);
  }

  @Override
  public OperatorCost getCost() {
    return new OperatorCost(0, 0, 1000, child.getSize().getRecordCount());
  }
View Full Code Here

Examples of org.apache.drill.exec.physical.OperatorCost

  }

  @Override
  public OperatorCost getCost() {
    float network = child.getSize().getAggSize();
    return new OperatorCost(network, 0, 1000, child.getSize().getRecordCount());
  }
View Full Code Here

Examples of org.apache.drill.exec.physical.OperatorCost

  }

  @Override
  public OperatorCost getCost() {
    //TODO: deal with receiver cost through exchange.
    return new OperatorCost(1,1,1,1);
  }
View Full Code Here

Examples of org.apache.drill.exec.physical.OperatorCost

    double cpuCost =
        k * n2 * (Math.log(n2)/Math.log(2)) + //
        n * (Math.log(k)/Math.log(2));
    double diskCost = n*width*2;
   
    return new OperatorCost(0, (float) diskCost, (float) n2*width, (float) cpuCost);
  }
View Full Code Here

Examples of org.apache.drill.exec.physical.OperatorCost

    return new Union(children.toArray(new PhysicalOperator[children.size()]));
  }

  @Override
  public OperatorCost getCost() {
    OperatorCost cost = new OperatorCost(0,0,0,0);
    for (int i = 0; i < children.length; i++) {
      PhysicalOperator child = children[i];
      cost.add(child.getCost());
    }
    return cost;
  }
View Full Code Here

Examples of org.apache.drill.exec.physical.OperatorCost

  }

  @Override
  public OperatorCost getCost() {
    long recordSize = child.getSize().getRecordSize() * child.getSize().getRecordCount();
    return new OperatorCost((float) recordSize, recordSize, 0, child.getSize().getRecordCount()/(1<<16));
  }
View Full Code Here

Examples of org.apache.drill.exec.physical.OperatorCost

  }
 
  public static ExchangeCost getSimpleEstimate(Size s){
    long cnt = s.getRecordCount();
    int sz = s.getRecordSize();
    OperatorCost send = new OperatorCost(cnt*sz, 0, 0, cnt);
    OperatorCost receive = new OperatorCost(cnt*sz, 0, 0, cnt);
    return new ExchangeCost(send, receive);
  }
View Full Code Here

Examples of org.apache.drill.exec.physical.OperatorCost

  private final List<JoinCondition> conditions;
  private final Join.JoinType joinType;

  @Override
  public OperatorCost getCost() {
    return new OperatorCost(0,0,0,0);
  }
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.