| Constructor and Description |
|---|
WindowImpl(List<T> tuples,
List<T> newTuples,
List<T> expiredTuples,
Long startTimestamp,
Long endTimestamp) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
List<T> |
get()
Gets the list of events in the window.
|
Long |
getEndTimestamp()
If processing based on event time, returns the window end time based on watermark otherwise
returns the window end time based on processing time.
|
List<T> |
getExpired()
Get the list of events expired from the window since the last time the window was generated.
|
List<T> |
getNew()
Get the list of newly added events in the window since the last time the window was generated.
|
Long |
getStartTimestamp()
Returns the window start timestamp.
|
int |
hashCode() |
String |
toString() |
public List<T> get()
Window
Note: If the number of tuples in windows is huge, invoking get would
load all the tuples into memory and may throw an OOM exception. Use windowing with persistence
public List<T> getNew()
Windowpublic List<T> getExpired()
WindowgetExpired in interface Window<T>public Long getStartTimestamp()
WindowgetStartTimestamp in interface Window<T>public Long getEndTimestamp()
WindowgetEndTimestamp in interface Window<T>Copyright © 2017–2021 Apache Software Foundation. All rights reserved.