abstract class ProcessWindowFunction[IN, OUT, KEY, W <: Window] extends AbstractRichFunction
Base abstract class for functions that are evaluated over keyed (grouped) windows using a context for retrieving extra information.
- IN
The type of the input value.
- OUT
The type of the output value.
- KEY
The type of the key.
- W
The type of the window.
- Annotations
- @PublicEvolving()
- Alphabetic
- By Inheritance
- ProcessWindowFunction
- AbstractRichFunction
- RichFunction
- Function
- Serializable
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
- new ProcessWindowFunction()
Abstract Value Members
-
abstract
def
process(key: KEY, 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.
- key
The key for which this window is evaluated.
- context
The context in which the window is being evaluated.
- elements
The elements in the window being evaluated.
- out
A collector for emitting elements.
- Annotations
- @throws( ... )
- Exceptions thrown
ExceptionThe function may throw exceptions to fail the program and trigger recovery.
Concrete Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
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).- context
The context to which the window is being evaluated
- Annotations
- @throws( ... )
- Exceptions thrown
ExceptionThe function may throw exceptions to fail the program and trigger recovery.
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native() @HotSpotIntrinsicCandidate()
-
def
close(): Unit
- Definition Classes
- AbstractRichFunction → RichFunction
- Annotations
- @throws( classOf[java.lang.Exception] )
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
def
getIterationRuntimeContext(): IterationRuntimeContext
- Definition Classes
- AbstractRichFunction → RichFunction
-
def
getRuntimeContext(): RuntimeContext
- Definition Classes
- AbstractRichFunction → RichFunction
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
def
open(arg0: Configuration): Unit
- Definition Classes
- AbstractRichFunction → RichFunction
- Annotations
- @throws( classOf[java.lang.Exception] )
-
def
setRuntimeContext(arg0: RuntimeContext): Unit
- Definition Classes
- AbstractRichFunction → RichFunction
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
Deprecated Value Members
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] ) @Deprecated
- Deprecated