com.eharmony.aloha.dataset

StatefulRowCreator

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
Learn more about member selection
Visibility
  1. Public
  2. All

Abstract Value Members

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

    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

    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: AnyRef): Boolean

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

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

    Definition Classes
    AnyRef
  5. final def ==(arg0: Any): Boolean

    Definition Classes
    Any
  6. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  7. def clone(): AnyRef

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

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

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

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

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

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

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

    Definition Classes
    AnyRef
  15. final def notify(): Unit

    Definition Classes
    AnyRef
  16. final def notifyAll(): Unit

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

    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.

    returns

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

    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.

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

    Definition Classes
    AnyRef
  20. def toString(): String

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

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from Serializable

Inherited from Serializable

Inherited from AnyRef

Inherited from Any

Ungrouped