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). The inherited Event.time is set to timeTo (the block's exclusive end).

See Also:
  • Field Details

    • timeFrom

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

      public final long timeTo
      End of the block's time window, in nanoseconds (exclusive).
  • Constructor Details

    • DynamicHistoryEvent

      public DynamicHistoryEvent(long timeFrom, long timeTo)
      Parameters:
      timeFrom - start of the block's time window, in nanoseconds (inclusive)
      timeTo - end of the block's time window, in nanoseconds (exclusive)