Packages

class SQLMetric extends AccumulatorV2[Long, Long]

A metric used in a SQL query plan. This is implemented as an AccumulatorV2. Updates on the executor side are automatically propagated and shown in the SQL UI through metrics. Updates on the driver side must be explicitly posted using SQLMetrics.postDriverMetricUpdates().

Linear Supertypes
AccumulatorV2[Long, Long], Serializable, Serializable, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. SQLMetric
  2. AccumulatorV2
  3. Serializable
  4. Serializable
  5. AnyRef
  6. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new SQLMetric(metricType: String, initValue: Long = 0L)

Value Members

  1. def +=(v: Long): Unit
  2. def add(v: Long): Unit
    Definition Classes
    SQLMetric → AccumulatorV2
  3. def copy(): SQLMetric
    Definition Classes
    SQLMetric → AccumulatorV2
  4. def copyAndReset(): AccumulatorV2[Long, Long]
    Definition Classes
    AccumulatorV2
  5. final def id: Long
    Definition Classes
    AccumulatorV2
  6. final def isRegistered: Boolean
    Definition Classes
    AccumulatorV2
  7. def isZero(): Boolean
    Definition Classes
    SQLMetric → AccumulatorV2
  8. def merge(other: AccumulatorV2[Long, Long]): Unit
    Definition Classes
    SQLMetric → AccumulatorV2
  9. val metricType: String
  10. final def name: Option[String]
    Definition Classes
    AccumulatorV2
  11. def reset(): Unit
    Definition Classes
    SQLMetric → AccumulatorV2
  12. def set(v: Long): Unit
  13. def set(v: Double): Unit
  14. def toInfo(update: Option[Any], value: Option[Any]): AccumulableInfo
    Definition Classes
    SQLMetric → AccumulatorV2
  15. def toString(): String
    Definition Classes
    AccumulatorV2 → AnyRef → Any
  16. def value: Long
    Definition Classes
    SQLMetric → AccumulatorV2