Move computedxxxStdDev to PlanNodeStats
PlanNodeStats is the only user of these methods.
@@ -1475,7 +1475,6 @@ public class PlanPrinter
operatorInputStats,
operatorHashCollisionsStats);
}
- }
private static double computedStdDev(double sumSquared, double sum, long n)
{
@@ -1492,6 +1491,7 @@ public class PlanPrinter
// variance might be negative because of numeric inaccuracy, therefore we need to use max
return sqrt(max(variance, 0d));
}
+ }
private static <K> Map<K, OperatorInputStats> mergeOperatorInputStatsMaps(Map<K, OperatorInputStats> map1, Map<K, OperatorInputStats> map2)
{
