Package org.apache.spark.util
Class MetricUtils
Object
org.apache.spark.util.MetricUtils
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic String
static boolean
metricNeedsMax
(String metricsType) static String
static String
static String
stringValue
(String metricsType, long[] values, long[] maxMetrics) A function that defines how we aggregate the final accumulator results among all tasks, and represent it in string for a SQL physical operator.static String
static String
-
Constructor Details
-
MetricUtils
public MetricUtils()
-
-
Method Details
-
SUM_METRIC
-
SIZE_METRIC
-
TIMING_METRIC
-
NS_TIMING_METRIC
-
AVERAGE_METRIC
-
metricNeedsMax
-
stringValue
A function that defines how we aggregate the final accumulator results among all tasks, and represent it in string for a SQL physical operator.- Parameters:
metricsType
- (undocumented)values
- (undocumented)maxMetrics
- (undocumented)- Returns:
- (undocumented)
-