Package io.trino.cost
Class StatsAndCosts
- java.lang.Object
-
- io.trino.cost.StatsAndCosts
-
public class StatsAndCosts extends Object
-
-
Constructor Summary
Constructors Constructor Description StatsAndCosts(Map<PlanNodeId,PlanNodeStatsEstimate> stats, Map<PlanNodeId,PlanCostEstimate> costs)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static StatsAndCostscreate(StageInfo stageInfo)static StatsAndCostscreate(PlanNode root, StatsProvider statsProvider, CostProvider costProvider)static StatsAndCostsempty()Map<PlanNodeId,PlanCostEstimate>getCosts()StatsAndCostsgetForSubplan(PlanNode root)Map<PlanNodeId,PlanNodeStatsEstimate>getStats()
-
-
-
Constructor Detail
-
StatsAndCosts
public StatsAndCosts(Map<PlanNodeId,PlanNodeStatsEstimate> stats, Map<PlanNodeId,PlanCostEstimate> costs)
-
-
Method Detail
-
empty
public static StatsAndCosts empty()
-
getStats
public Map<PlanNodeId,PlanNodeStatsEstimate> getStats()
-
getCosts
public Map<PlanNodeId,PlanCostEstimate> getCosts()
-
getForSubplan
public StatsAndCosts getForSubplan(PlanNode root)
-
create
public static StatsAndCosts create(PlanNode root, StatsProvider statsProvider, CostProvider costProvider)
-
create
public static StatsAndCosts create(StageInfo stageInfo)
-
-