Class

ch.cern.sparkmeasure

StageMetrics

Related Doc: package sparkmeasure

Permalink

case class StageMetrics(sparkSession: SparkSession) extends Product with Serializable

Linear Supertypes
Serializable, Serializable, Product, Equals, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. StageMetrics
  2. Serializable
  3. Serializable
  4. Product
  5. Equals
  6. AnyRef
  7. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new StageMetrics(sparkSession: SparkSession)

    Permalink

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  5. def begin(): Long

    Permalink
  6. var beginSnapshot: Long

    Permalink

    Variables used to store the start and end time of the period of interest for the metrics report

  7. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  8. def createAccumulablesDF(nameTempView: String = "AccumulablesStageMetrics"): DataFrame

    Permalink
  9. def createStageMetricsDF(nameTempView: String = "PerfStageMetrics"): DataFrame

    Permalink

    Move data recorded from the custom listener into a DataFrame and register it as a view for easier processing

  10. def end(): Long

    Permalink
  11. var endSnapshot: Long

    Permalink
  12. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  13. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  14. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  15. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  16. val listenerStage: StageInfoRecorderListener

    Permalink

    This inserts the custom Spark Listener into the live Spark Context

  17. lazy val logger: Logger

    Permalink
  18. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  19. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  20. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  21. def printAccumulables(): Unit

    Permalink

    for internal metrics summ all the values, for the accumulables compute max value for eax accId and name

  22. def printReport(): Unit

    Permalink

    Custom aggreagations and post-processing of the metrics data

  23. def runAndMeasure[T](f: ⇒ T): T

    Permalink

    Shortcut to run and measure the metrics for Spark execution, built after spark.time()

  24. def saveData(df: DataFrame, fileName: String, fileFormat: String = "json"): Unit

    Permalink

    Helper method to save data, we expect to have small amounts of data so collapsing to 1 partition seems OK

  25. val sparkSession: SparkSession

    Permalink
  26. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  27. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  28. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  29. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from Serializable

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from AnyRef

Inherited from Any

Ungrouped