W - The type of Window that this assigner assigns.public abstract class PanedWindowAssigner<W extends Window> extends WindowAssigner<W>
WindowAssigner that window can be split into panes.| 构造器和说明 |
|---|
PanedWindowAssigner() |
| 限定符和类型 | 方法和说明 |
|---|---|
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, toStringpublic abstract W assignPane(Object element, long timestamp)
element - The element to which windows should be assigned.timestamp - The timestamp of the element when WindowAssigner.isEventTime() returns true,
or the current system time when WindowAssigner.isEventTime() returns false.public abstract Iterable<W> splitIntoPanes(W window)
window - the window to be split.Copyright © 2014–2020 The Apache Software Foundation. All rights reserved.