W
- type of the window instancepublic abstract class Windows<W extends Window>
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
name |
int |
segments |
Modifier | Constructor and Description |
---|---|
protected |
Windows(java.lang.String name) |
Modifier and Type | Method and Description |
---|---|
long |
maintainMs()
Return the window maintain duration in milliseconds of system time.
|
java.lang.String |
name() |
protected Windows |
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.
|
Windows |
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.
|
public java.lang.String name()
public Windows until(long durationMs)
protected Windows 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
entries