Package io.trino.cost
Interface CostCalculator
-
- All Known Implementing Classes:
CostCalculatorUsingExchanges,CostCalculatorWithEstimatedExchanges
@ThreadSafe public interface CostCalculator
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interfaceCostCalculator.EstimatedExchanges
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description PlanCostEstimatecalculateCost(PlanNode node, StatsProvider stats, CostProvider sourcesCosts, Session session, TypeProvider types)Calculates cumulative cost of a node.
-
-
-
Method Detail
-
calculateCost
PlanCostEstimate calculateCost(PlanNode node, StatsProvider stats, CostProvider sourcesCosts, Session session, TypeProvider types)
Calculates cumulative cost of a node.- Parameters:
node- The node to compute cost for.stats- The stats provider for node's stats and child nodes' stats, to be used if stats are needed to compute cost for thenode
-
-