@ThreadSafe public class CostCalculatorUsingExchanges extends Object implements CostCalculator
CostCalculator.EstimatedExchanges| Constructor and Description |
|---|
CostCalculatorUsingExchanges(TaskCountEstimator taskCountEstimator) |
| Modifier and Type | Method and Description |
|---|---|
PlanCostEstimate |
calculateCost(PlanNode node,
StatsProvider stats,
CostProvider sourcesCosts,
Session session,
TypeProvider types)
Calculates cumulative cost of a node.
|
@Inject public CostCalculatorUsingExchanges(TaskCountEstimator taskCountEstimator)
public PlanCostEstimate calculateCost(PlanNode node, StatsProvider stats, CostProvider sourcesCosts, Session session, TypeProvider types)
CostCalculatorcalculateCost in interface CostCalculatornode - 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 the nodeCopyright © 2012–2019. All rights reserved.