Package io.trino.cost

Interface StatsCalculator

All Known Implementing Classes:
ComposableStatsCalculator

public interface StatsCalculator
  • Method Details

    • calculateStats

      PlanNodeStatsEstimate calculateStats(PlanNode node, StatsProvider sourceStats, Lookup lookup, Session session, TypeProvider types, TableStatsProvider tableStatsProvider)
      Calculate stats for the node.
      Parameters:
      node - The node to compute stats for.
      sourceStats - The stats provider for any child nodes' stats, if needed to compute stats for the node
      lookup - Lookup to be used when resolving source nodes, allowing stats calculation to work within IterativeOptimizer
      types - The type provider for all symbols in the scope.
      tableStatsProvider - The table stats provider.
    • noopStatsCalculator

      static StatsCalculator noopStatsCalculator()