Examples of DrillCostBase


Examples of org.apache.drill.exec.planner.cost.DrillCostBase

    double inputRows = RelMetadataQuery.getRowCount(child);
    int  rowWidth = child.getRowType().getFieldCount() * DrillCostBase.AVG_FIELD_WIDTH;
    double cpuCost = DrillCostBase.SVR_CPU_COST * inputRows ;
    int numEndPoints = PrelUtil.getSettings(getCluster()).numEndPoints();
    double networkCost = DrillCostBase.BYTE_NETWORK_COST * inputRows * rowWidth * numEndPoints;
    return new DrillCostBase(inputRows, cpuCost, 0, networkCost);
  }
View Full Code Here

Examples of org.apache.drill.exec.planner.cost.DrillCostBase

    return ((DrillCostBase) RelMetadataQuery.getCumulativeCost(prel)).getMemory();
//    return findCost(prel);
  }

  private double findCost(Prel prel) {
    DrillCostBase cost = (DrillCostBase) RelMetadataQuery.getNonCumulativeCost(prel);
    double memory = cost.getMemory();

    for (Prel child : prel) {
      memory += findCost(child);
    }
    return memory;
View Full Code Here

Examples of org.apache.drill.exec.planner.cost.DrillCostBase

    double inputRows = RelMetadataQuery.getRowCount(child);
    int  rowWidth = child.getRowType().getFieldCount() * DrillCostBase.AVG_FIELD_WIDTH;
    double cpuCost = DrillCostBase.SVR_CPU_COST * inputRows ;
    int numEndPoints = PrelUtil.getSettings(getCluster()).numEndPoints();
    double networkCost = DrillCostBase.BYTE_NETWORK_COST * inputRows * rowWidth * numEndPoints;
    return new DrillCostBase(inputRows, cpuCost, 0, networkCost);
  }
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.