Class CustomAvgMetric
Object
org.apache.spark.sql.connector.metric.CustomAvgMetric
- All Implemented Interfaces:
- CustomMetric
Built-in `CustomMetric` that computes average of metric values. Note that please extend this
 class and override `name` and `description` to create your custom metric for real usage.
- Since:
- 3.2.0
- 
Field SummaryFields inherited from interface org.apache.spark.sql.connector.metric.CustomMetricinitialValue
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionaggregateTaskMetrics(long[] taskMetrics) Given an array of task metric values, returns aggregated final metric value.Methods inherited from class java.lang.Objectequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.spark.sql.connector.metric.CustomMetricdescription, name
- 
Constructor Details- 
CustomAvgMetricpublic CustomAvgMetric()
 
- 
- 
Method Details- 
aggregateTaskMetricsDescription copied from interface:CustomMetricGiven an array of task metric values, returns aggregated final metric value.- Specified by:
- aggregateTaskMetricsin interface- CustomMetric
 
 
-