W
- The type of Window
that this assigner assigns.public abstract class PanedWindowAssigner<W extends Window> extends GroupWindowAssigner<W>
WindowAssigner
that window can be split into panes.Constructor and Description |
---|
PanedWindowAssigner() |
Modifier and Type | Method and Description |
---|---|
abstract W |
assignPane(Object element,
long timestamp)
Given the timestamp and element, returns the pane into which it should be placed.
|
abstract W |
getLastWindow(W pane)
Gets the last window which the pane belongs to.
|
abstract Iterable<W> |
splitIntoPanes(W window)
Splits the given window into panes collection.
|
assignWindows, getWindowSerializer, isEventTime, open, toString
public abstract W assignPane(Object element, long timestamp)
element
- The element to which windows should be assigned.timestamp
- The timestamp of the element when GroupWindowAssigner.isEventTime()
returns true, or
the current system time when GroupWindowAssigner.isEventTime()
returns false.public abstract Iterable<W> splitIntoPanes(W window)
window
- the window to be split.Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.