Class DynamicHistoryEvent
java.lang.Object
velox.api.layer1.datastructure.events.Event
velox.api.layer1.dynamichistory.events.DynamicHistoryEvent
- All Implemented Interfaces:
Serializable,Cloneable,CloneableSerializable,CustomGeneratedEvent
Base class for events produced from historical (dynamic history) aggregations. Each event corresponds to a
single tree block and carries the time window that block covers.
The window is half-open: (timeFrom, timeTo] - blocks are aggregated end-anchored, so an event
with time exactly timeTo belongs to this block, while one exactly at timeFrom belongs to
the previous block. The inherited Event.time is set to timeTo (the block's timestamp and
inclusive end).
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionfinal longStart of the block's time window, in nanoseconds (exclusive).final longEnd of the block's time window, in nanoseconds (inclusive); equals the block's timestamp. -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
timeFrom
public final long timeFromStart of the block's time window, in nanoseconds (exclusive). -
timeTo
public final long timeToEnd of the block's time window, in nanoseconds (inclusive); equals the block's timestamp.
-
-
Constructor Details
-
DynamicHistoryEvent
public DynamicHistoryEvent(long timeFrom, long timeTo) - Parameters:
timeFrom- start of the block's time window, in nanoseconds (exclusive)timeTo- end of the block's time window, in nanoseconds (inclusive)
-