Package io.trino.cost
Interface StatsCalculator
-
- All Known Implementing Classes:
ComposableStatsCalculator
public interface StatsCalculator
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description PlanNodeStatsEstimatecalculateStats(PlanNode node, StatsProvider sourceStats, Lookup lookup, Session session, TypeProvider types)Calculate stats for thenode.static StatsCalculatornoopStatsCalculator()
-
-
-
Method Detail
-
calculateStats
PlanNodeStatsEstimate calculateStats(PlanNode node, StatsProvider sourceStats, Lookup lookup, Session session, TypeProvider types)
Calculate stats for thenode.- Parameters:
node- The node to compute stats for.sourceStats- The stats provider for any child nodes' stats, if needed to compute stats for thenodelookup- Lookup to be used when resolving source nodes, allowing stats calculation to work withinIterativeOptimizertypes- The type provider for all symbols in the scope.
-
noopStatsCalculator
static StatsCalculator noopStatsCalculator()
-
-