Package org.apache.drill.exec.planner.cost

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


    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

    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

Related Classes of org.apache.drill.exec.planner.cost.DrillCostBase

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.