Class DynamicHistoryEvent

java.lang.Object
velox.api.layer1.datastructure.events.Event
velox.api.layer1.dynamichistory.events.DynamicHistoryEvent
All Implemented Interfaces:
Serializable, Cloneable, CloneableSerializable, CustomGeneratedEvent

public abstract class DynamicHistoryEvent extends Event
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 Details

    • timeFrom

      public final long timeFrom
      Start of the block's time window, in nanoseconds (exclusive).
    • timeTo

      public final long timeTo
      End 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)