plannerEqualityHitsEstimate method

int? plannerEqualityHitsEstimate(
  1. String tableName,
  2. String column
)

Test/diagnostics hook: the average rows-per-key the planner would charge an equality probe on tableName.column, mirroring the internal _estimateEqualityHits heuristic. Paged tables aren't supported (their stats path doesn't go through _estimateEqualityHits).

Implementation

int? plannerEqualityHitsEstimate(String tableName, String column) {
  final t = _tables[tableName];
  if (t == null) return null;
  return _estimateEqualityHits(t, column);
}