RichWindowFunction

org.apache.flinkx.api.function.RichWindowFunction
abstract class RichWindowFunction[IN, OUT, KEY, W <: Window] extends AbstractRichFunction, WindowFunction[IN, OUT, KEY, W]

Rich variant of the org.apache.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.

Attributes

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

Members list

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.

Attributes

Throws
Exception

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

Inherited from:
WindowFunction
def close(): Unit

Attributes

Inherited from:
AbstractRichFunction
def getIterationRuntimeContext(): IterationRuntimeContext

Attributes

Inherited from:
AbstractRichFunction
def getRuntimeContext(): RuntimeContext

Attributes

Inherited from:
AbstractRichFunction
def open(x$0: Configuration): Unit

Attributes

Inherited from:
AbstractRichFunction
def setRuntimeContext(x$0: RuntimeContext): Unit

Attributes

Inherited from:
AbstractRichFunction