Package net.quasardb.qdb.ts
Class TimeRange
java.lang.Object
net.quasardb.qdb.ts.TimeRange
- All Implemented Interfaces:
Serializable
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetBegin()
getEnd()
static TimeRange
Returns the intersection of two time ranges, that is, the widest possible range that is contained by both time ranges.static TimeRange
Merges a new timespec into this time range, and widens the time range if necessary to be wide enough to contain this time point.toString()
static TimeRange
Returns the union of two time ranges, that is, the range that can contain both time ranges.Returns a copy of this timerange with a different begin.Returns a copy of this timerange with a different end.
-
Field Details
-
UNIVERSE_RANGE
Timerange that spans the universal set of all representable time. -
begin
-
end
-
-
Constructor Details
-
TimeRange
-
-
Method Details
-
getBegin
-
withBegin
Returns a copy of this timerange with a different begin. -
getEnd
-
withEnd
Returns a copy of this timerange with a different end. -
toString
-
union
Returns the union of two time ranges, that is, the range that can contain both time ranges. -
intersect
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
Merges a new timespec into this time range, and widens the time range if necessary to be wide enough to contain this time point.
-