Trait

com.eharmony.aloha.dataset

StatefulRowCreator

Related Doc: package dataset

Permalink

trait StatefulRowCreator[-A, +B, S] extends Serializable

A row creator that requires state. This state should be modeled functionally, meaning implementations should be referentially transparent.

Created by ryan.deak on 11/2/17.

Linear Supertypes
Serializable, Serializable, AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. StatefulRowCreator
  2. Serializable
  3. Serializable
  4. AnyRef
  5. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Abstract Value Members

  1. abstract def apply(a: A, state: S): ((MissingAndErroneousFeatureInfo, Option[B]), S)

    Permalink

    Given an a and some state, produce output, including a new state.

    Given an a and some state, produce output, including a new state.

    When using this function, the user is responsible for keeping track of, and providing the state.

    The implementation of this function should be referentially transparent.

    a

    input

    state

    the state

    returns

    a tuple where the first element is a Tuple2 whose first element is missing and error information and second element is an optional result. The second element of the outer Tuple2 is the new state.

  2. abstract val initialState: S

    Permalink

    Some initial state that can be used on the very first call to apply(A, S).

    Some initial state that can be used on the very first call to apply(A, S).

    returns

    some state.

Concrete 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. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  10. def hashCode(): Int

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

    Permalink
    Definition Classes
    Any
  12. final def ne(arg0: AnyRef): Boolean

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

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

    Permalink
    Definition Classes
    AnyRef
  15. def statefulMap[In <: Seq[A], Out](as: SeqLike[A, In], state: S)(implicit cbf: CanBuildFrom[In, ((MissingAndErroneousFeatureInfo, Option[B]), S), Out]): Out

    Permalink

    Apply the apply(A, S) method to the elements of the sequence.

    Apply the apply(A, S) method to the elements of the sequence. In the first application of apply(A, S), state will be used as the state. In subsequent applications, the state will come from the state generated in the output of the previous application of apply(A, S).

    NOTE: This method isn't really parallelizable via chunking. The way to parallelize this method is to provide a separate starting state for each unit of parallelism.

    For more information, see com.eharmony.aloha.util.StatefulMapOps

    as

    input to map.

    state

    the initial state to use at the start of mapping.

    cbf

    object responsible for building the output collection.

  16. def statefulMap(as: Iterator[A], state: S): Iterator[((MissingAndErroneousFeatureInfo, Option[B]), S)]

    Permalink

    Apply the apply(A, S) method to the elements of the iterator.

    Apply the apply(A, S) method to the elements of the iterator. In the first application of apply(A, S), state will be used as the state. In subsequent applications, the state will come from the state generated in the output of the previous application of apply(A, S).

    For more information, see com.eharmony.aloha.util.StatefulMapOps

    as

    Note the first element of as will be forced in this method in order to construct the output.

    state

    the initial state to use at the start of the iterator.

    returns

    an iterator containing the a mapped to a (MissingAndErroneousFeatureInfo, Option[B]) along with the resulting state that is created in the process.

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

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

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

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

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

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

Inherited from Serializable

Inherited from Serializable

Inherited from AnyRef

Inherited from Any

Ungrouped