Class/Object

io.github.sparkdataprocessing

State

Related Docs: object State | package sparkdataprocessing

Permalink

case class State(steps: Seq[Step] = Seq(), settings: DataProcessingSettings = DataProcessingSettings(), stateRecordById: Map[String, StateRecord] = Map(), previousStates: Map[String, State] = Map(), spark: SparkSession = SparkSession.active) extends Product with Serializable

Linear Supertypes
Serializable, Serializable, Product, Equals, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. State
  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 State(steps: Seq[Step] = Seq(), settings: DataProcessingSettings = DataProcessingSettings(), stateRecordById: Map[String, StateRecord] = Map(), previousStates: Map[String, State] = Map(), spark: SparkSession = SparkSession.active)

    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. def activate(cleanTempViews: Boolean = settings.cleanTempViews): Unit

    Permalink

    Activate the state: - Cleanup (unregister) all existing temp-views - register the the tables of this state

  5. def add(record: StateRecord): State

    Permalink
  6. def apply(tableName: String): DataFrame

    Permalink
  7. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  8. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  9. def content: DataFrame

    Permalink

    Return the content of th

  10. final def eq(arg0: AnyRef): Boolean

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  13. def getDF(tableName: String): DataFrame

    Permalink
  14. def getDFById(id: String): DataFrame

    Permalink
  15. def getState(tableName: String): State

    Permalink
  16. def getStateForStep(s: Step): State

    Permalink
  17. def getStateRecord(step: Step): StateRecord

    Permalink
  18. def getStep(tableName: String): Step

    Permalink
  19. def getStepById(id: String): Step

    Permalink
  20. def impalaRefresh(statusFilter: Set[String] = Set("written to cache")): String

    Permalink
  21. def impalaRefreshToFile(filePath: String, statusFilter: Set[String] = Set("written to cache")): Unit

    Permalink
  22. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  23. def metrics: MetricsDataset

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

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

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

    Permalink
    Definition Classes
    AnyRef
  27. val previousStates: Map[String, State]

    Permalink
  28. def registerTempViews(): Unit

    Permalink

    Register the latest Tables of this state as TempViews

  29. def remove(name: String): State

    Permalink
  30. def setSettings(a: DataProcessingSettings): State

    Permalink
  31. val settings: DataProcessingSettings

    Permalink
  32. def show: Unit

    Permalink
  33. def show(numRows: Int = 100): Unit

    Permalink
  34. def snapshotState(a: BaseStep): State

    Permalink
  35. val spark: SparkSession

    Permalink
  36. val stateRecordById: Map[String, StateRecord]

    Permalink
  37. val steps: Seq[Step]

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

    Permalink
    Definition Classes
    AnyRef
  39. def tableNames: Seq[String]

    Permalink

    List all the available tables

  40. def uniqueTableName(name: String): String

    Permalink

    Returns an unique table name, that can be used to spill the results of a step to hdfs.

    Returns an unique table name, that can be used to spill the results of a step to hdfs. Multiple Steps can have the same name. If step foo does not exist yet, it returns 'foo', otherwise it returns 'foo_2', 'foo_3',....

    returns

    unique table name

  41. def unregisterAllTempViews(): Unit

    Permalink

    Unregister all temp-views

  42. final def wait(): Unit

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  45. def writeDataFrame(target: String, df: DataFrame, activate: Boolean = true, show: Boolean = true): State

    Permalink

Inherited from Serializable

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from AnyRef

Inherited from Any

Ungrouped