public class TupleWindowImpl extends Object implements TupleWindow
Holds the expired, new and current tuples in a window.
Constructor and Description |
---|
TupleWindowImpl(List<Tuple> tuples,
List<Tuple> newTuples,
List<Tuple> expiredTuples) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
List<Tuple> |
get()
Gets the list of events in the window.
|
List<Tuple> |
getExpired()
Get the list of events expired from the window since the last time the window was generated.
|
List<Tuple> |
getNew()
Get the list of newly added events in the window since the last time the window was generated.
|
int |
hashCode() |
String |
toString() |
public List<Tuple> get()
Window
Gets the list of events in the window.
public List<Tuple> getNew()
Window
Get the list of newly added events in the window since the last time the window was generated.
public List<Tuple> getExpired()
Window
Get the list of events expired from the window since the last time the window was generated.
getExpired
in interface Window<Tuple>
Copyright © 2019 The Apache Software Foundation. All Rights Reserved.