Class TimeRange

java.lang.Object
net.quasardb.qdb.ts.TimeRange
All Implemented Interfaces:
Serializable

public class TimeRange extends Object implements Serializable
See Also:
  • Field Details

    • UNIVERSE_RANGE

      public static final TimeRange UNIVERSE_RANGE
      Timerange that spans the universal set of all representable time.
    • begin

      protected Timespec begin
    • end

      protected Timespec end
  • Constructor Details

  • Method Details

    • getBegin

      public Timespec getBegin()
    • withBegin

      public TimeRange withBegin(Timespec b)
      Returns a copy of this timerange with a different begin.
    • getEnd

      public Timespec getEnd()
    • withEnd

      public TimeRange withEnd(Timespec e)
      Returns a copy of this timerange with a different end.
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • union

      public static TimeRange union(TimeRange lhs, TimeRange rhs)
      Returns the union of two time ranges, that is, the range that can contain both time ranges.
    • intersect

      public static TimeRange intersect(TimeRange lhs, TimeRange rhs)
      Returns the intersection of two time ranges, that is, the widest possible range that is contained by both time ranges. Undefined behavior if the two timespecs do not overlap.
    • merge

      public static TimeRange merge(TimeRange r, Timespec t)
      Merges a new timespec into this time range, and widens the time range if necessary to be wide enough to contain this time point.