W
- type of the window instancepublic abstract class Windows<W extends Window> extends Object
Modifier and Type | Field and Description |
---|---|
int |
segments |
Modifier | Constructor and Description |
---|---|
protected |
Windows() |
Modifier and Type | Method and Description |
---|---|
long |
maintainMs()
Return the window maintain duration in milliseconds of system time.
|
protected Windows<W> |
segments(int segments)
Specify the number of segments to be used for rolling the window store,
this function is not exposed to users but can be called by developers that extend this JoinWindows specs.
|
abstract long |
size() |
Windows<W> |
until(long durationMs)
Set the window maintain duration in milliseconds of streams time.
|
abstract Map<Long,W> |
windowsFor(long timestamp)
Creates all windows that contain the provided timestamp, indexed by non-negative window start timestamps.
|
public Windows<W> until(long durationMs)
protected Windows<W> segments(int segments)
public long maintainMs()
public abstract Map<Long,W> windowsFor(long timestamp)
timestamp
- the timestamp window should get created forwindowStartTimestamp -> Window
entriespublic abstract long size()