RichWindowFunction

abstract class RichWindowFunction[IN, OUT, KEY, W <: Window] extends AbstractRichFunction with WindowFunction[IN, OUT, KEY, W]

Rich variant of the io.findify.flink.api.function.WindowFunction.

As a org.apache.flink.api.common.functions.RichFunction, it gives access to the org.apache.flink.api.common.functions.RuntimeContext and provides setup and tear-down methods.

Type parameters:
IN

The type of the input value.

KEY

The type of the key.

OUT

The type of the output value.

W

The type of Window that this window function can be applied on.

trait WindowFunction[IN, OUT, KEY, W]
class AbstractRichFunction
trait RichFunction
trait Function
trait Serializable
class Object
trait Matchable
class Any

Value members

Inherited methods

def apply(key: KEY, window: W, input: Iterable[IN], out: Collector[OUT]): Unit

Evaluates the window and outputs none or several elements.

Evaluates the window and outputs none or several elements.

Value parameters:
input

The elements in the window being evaluated.

key

The key for which this window is evaluated.

out

A collector for emitting elements.

window

The window that is being evaluated.

Throws:
Exception

The function may throw exceptions to fail the program and trigger recovery.

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