Class CollectionWindow
-
- All Implemented Interfaces:
@Serializable() public final class CollectionWindow
Class that describes a time window. In some cases, it is useful to have a start and end time for collection. The CollectionWindow's startTime and endTime will be modified each collection such that each collection's endTime will be the next collection's startTime. Thus, the window can be treated as either the interval
(startTime, endTime]
or[startTime, endTime)
, so long as each collection uses the same convention, there will be no overlaps or missing times. (Note that restarting the adapter instance will reset the time window. In general, this will cause overlap and/or missing times when restarts occur for any reason)
-
-
Constructor Summary
Constructors Constructor Description CollectionWindow(Double startTime, Double endTime)
-
Method Summary
Modifier and Type Method Description final Double
getStartTime()
The start of the window in milliseconds since the Epoch. final Double
getEndTime()
The end of the window in milliseconds since the Epoch. -
-
Method Detail
-
getStartTime
final Double getStartTime()
The start of the window in milliseconds since the Epoch. On the first collection, this will be set to
0
.
-
getEndTime
final Double getEndTime()
The end of the window in milliseconds since the Epoch.
-
-
-
-