Interface TimeWindow<T>
- Type Parameters:
T- the object type of the source collection.
- All Superinterfaces:
Iterable<T>
Supports iteration over a collection of elements that fall within the given start and end timestamps.
-
Method Summary
Modifier and TypeMethodDescriptionlongReturns the end time of this window.longReturns the start time of this window.Retrieves the items of the window as a list.intsize()Returns the size of the iterable collection.Methods inherited from interface java.lang.Iterable
forEach, iterator, spliterator
-
Method Details
-
getStartTimeMs
long getStartTimeMs()Returns the start time of this window.- Returns:
- the start time of the window.
-
getEndTimeMs
long getEndTimeMs()Returns the end time of this window.- Returns:
- the end time of this window.
-
size
int size()Returns the size of the iterable collection.- Returns:
- the size of the iterable collection.
-
getWindowContents
Retrieves the items of the window as a list.- Returns:
- a list of the items in the window.
-