Class

com.coxautodata.waimak.dataflow.spark

SimpleAction

Related Doc: package spark

Permalink

class SimpleAction[T, C] extends DataFlowAction[T, C]

Instances of this class build a bridge between OOP part of the Waimak engine and functional definition of the data flow.

Created by Alexei Perelighin on 03/11/17.

T

the type of the entity which we are transforming (e.g. Dataset)

C

the type of the context of the flow in which this action runs

Linear Supertypes
DataFlowAction[T, C], AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. SimpleAction
  2. DataFlowAction
  3. AnyRef
  4. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new SimpleAction(inputLabels: List[String], outputLabels: List[String], exec: (Map[String, T]) ⇒ ActionResult[T])

    Permalink

    inputLabels

    -

    exec

    - function to execute with inputs matched to input labels and outputs to output labels. By the time it is called, all inputs were validated and action is in runnable flow state.

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 clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  6. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  7. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  8. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  9. def flowState(inputs: DataFlowEntities[Option[T]]): DataFlowActionState

    Permalink

    Action has the responsibility of assessing itself and produce DataFlowActionState, that will be used by the executors to determine if they can call performAction or not.

    Action has the responsibility of assessing itself and produce DataFlowActionState, that will be used by the executors to determine if they can call performAction or not. Also can be used for progress monitoring. This will allow for more custom actions without modifying the executors

    inputs

    - action will study the state of the inputs in order to generate self assessment

    returns

    - an instance of the DataFlowActionState

    Definition Classes
    DataFlowAction
  10. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  11. val guid: String

    Permalink
    Definition Classes
    DataFlowAction
  12. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  13. val inputLabels: List[String]

    Permalink

    -

    -

    Definition Classes
    SimpleActionDataFlowAction
  14. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  15. lazy val logLabel: String

    Permalink
    Definition Classes
    DataFlowAction
  16. final def ne(arg0: AnyRef): Boolean

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

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

    Permalink
    Definition Classes
    AnyRef
  19. val outputLabels: List[String]

    Permalink

    The unique identifiers for the outputs to this action

    The unique identifiers for the outputs to this action

    Definition Classes
    SimpleActionDataFlowAction
  20. def performAction(inputs: DataFlowEntities[T], flowContext: C): ActionResult[T]

    Permalink

    Perform the action.

    Perform the action. Puts inputs into a map and invokes the exec function.

    inputs

    the DataFlowEntities corresponding to the inputLabels

    flowContext

    context of the flow in which this action runs

    returns

    the action outputs (these must be declared in the same order as their labels in outputLabels)

    Definition Classes
    SimpleActionDataFlowAction
  21. def requiresAllInputs: Boolean

    Permalink

    This action can only be executed if all of the inputs are not empty.

    This action can only be executed if all of the inputs are not empty. An input can be explicitly marked as empty. If false, than one or more inputs can be empty to start execution.

    Definition Classes
    DataFlowAction
  22. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  23. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  24. final def wait(): Unit

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

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

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

Inherited from DataFlowAction[T, C]

Inherited from AnyRef

Inherited from Any

Ungrouped