W
- type of the window instancepublic abstract class Windows<W extends Window>
extends java.lang.Object
TimeWindows
,
UnlimitedWindows
,
JoinWindows
,
SessionWindows
,
TimestampExtractor
Modifier and Type | Field and Description |
---|---|
int |
segments
Deprecated.
|
Modifier | Constructor and Description |
---|---|
protected |
Windows() |
Modifier and Type | Method and Description |
---|---|
abstract long |
gracePeriodMs()
Return the window grace period (the time to admit
late-arriving events after the end of the window.)
Lateness is defined as (stream_time - record_timestamp).
|
long |
maintainMs()
Deprecated.
since 2.1. Use
Materialized.retention instead. |
protected Windows<W> |
segments(int segments)
Deprecated.
since 2.1 Override segmentInterval() instead.
|
abstract long |
size()
Return the size of the specified windows in milliseconds.
|
Windows<W> |
until(long durationMs)
Deprecated.
since 2.1. Use
Materialized.withRetention(Duration)
or directly configure the retention in a store supplier and use Materialized.as(WindowBytesStoreSupplier) . |
abstract java.util.Map<java.lang.Long,W> |
windowsFor(long timestamp)
Create all windows that contain the provided timestamp, indexed by non-negative window start timestamps.
|
@Deprecated public Windows<W> until(long durationMs) throws java.lang.IllegalArgumentException
Materialized.withRetention(Duration)
or directly configure the retention in a store supplier and use Materialized.as(WindowBytesStoreSupplier)
.durationMs
- the window retention time in millisecondsjava.lang.IllegalArgumentException
- if durationMs
is negative@Deprecated public long maintainMs()
Materialized.retention
instead.@Deprecated protected Windows<W> segments(int segments) throws java.lang.IllegalArgumentException
segments
- the number of segments to be usedjava.lang.IllegalArgumentException
- if specified segments is small than 2public abstract java.util.Map<java.lang.Long,W> windowsFor(long timestamp)
timestamp
- the timestamp window should get created forwindowStartTimestamp -> Window
entriespublic abstract long size()
public abstract long gracePeriodMs()