W
- type of the window instancepublic abstract class Windows<W extends Window>
extends java.lang.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 system time.
|
abstract java.util.Map<java.lang.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 java.util.Map<java.lang.Long,W> windowsFor(long timestamp)
timestamp
- the timestamp window should get created forwindowStartTimestamp -> Window
entriespublic abstract long size()