ProcessAllWindowFunction

org.apache.flink.api.function.ProcessAllWindowFunction
@PublicEvolving
abstract class ProcessAllWindowFunction[IN, OUT, W <: Window] extends AbstractRichFunction

Base abstract class for functions that are evaluated over keyed (grouped) windows using a context for retrieving extra information.

Attributes

IN

The type of the input value.

OUT

The type of the output value.

W

The type of the window.

Graph
Supertypes
class AbstractRichFunction
trait RichFunction
trait Function
trait Serializable
class Object
trait Matchable
class Any

Members list

Concise view

Type members

Classlikes

abstract class Context

The context holding window metadata

The context holding window metadata

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any

Value members

Abstract methods

def process(context: Context, elements: Iterable[IN], out: Collector[OUT]): Unit

Evaluates the window and outputs none or several elements.

Evaluates the window and outputs none or several elements.

Attributes

context

The context in which the window is being evaluated.

elements

The elements in the window being evaluated.

out

A collector for emitting elements.

Throws:
Exception

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

Concrete methods

def clear(context: Context): Unit

Deletes any state in the Context when the Window expires (the watermark passes its maxTimestamp + allowedLateness).

Deletes any state in the Context when the Window expires (the watermark passes its maxTimestamp + allowedLateness).

Attributes

context

The context to which the window is being evaluated

Throws:
Exception

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

Inherited methods

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