StatefulFunction

@Public
trait StatefulFunction[I, O, S] extends RichFunction

Trait implementing the functionality necessary to apply stateful functions in RichFunctions without exposing the OperatorStates to the user. The user should call the applyWithState method in his own RichFunction implementation.

trait RichFunction
trait Function
trait Serializable
class Object
trait Matchable
class Any

Value members

Concrete methods

def applyWithState(in: I, fun: (I, Option[S]) => (O, Option[S])): O
override def open(c: Configuration): Unit
Definition Classes
RichFunction

Inherited methods

@throws(java.lang.Exception)
def close(): Unit
Inherited from:
RichFunction
def getIterationRuntimeContext(): IterationRuntimeContext
Inherited from:
RichFunction
def getRuntimeContext(): RuntimeContext
Inherited from:
RichFunction
def setRuntimeContext(x$0: RuntimeContext): Unit
Inherited from:
RichFunction

Abstract fields

protected val stateSerializer: TypeSerializer[S]