java.lang.Object
org.yamcs.utils.TimeInterval
org.yamcs.yarch.PartitionManager.Interval
- Enclosing class:
- PartitionManager
For tables partitioned by time this holds all the partitions for a given time interval. For example if YYYY
schema is used, this holds all the partitions for one year.
For tables not partitioned by time, this holds all the partitions (by value) for the table and there is only one instance of this class for that table.
Practically it keeps a value -> partition map.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.yamcs.utils.TimeInterval
TimeInterval.FilterOverlappingIterator<T extends TimeInterval> -
Constructor Summary
ConstructorsConstructorDescriptionInterval()Constructs an interval without start or stop (covers all time)Interval(long start, long stop) Interval(TimeInterval intv) -
Method Summary
Modifier and TypeMethodDescriptionvoidAdd a partitionvoidaddHistogram(String columnName, HistogramInfo histo) voidaddTimePartition(Partition partition) Get the partition corresponding to the valuegetHistogram(String columnName) iterator()Iterates over the partitions from this intervalintsize()toString()Methods inherited from class org.yamcs.utils.TimeInterval
contains0, getEnd, getStart, hasEnd, hasStart, openEnd, openStart, setEnd, setStart, toStringEncodedMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface java.lang.Iterable
forEach, spliterator
-
Constructor Details
-
Interval
public Interval(long start, long stop) -
Interval
public Interval()Constructs an interval without start or stop (covers all time) -
Interval
-
-
Method Details
-
get
Get the partition corresponding to the value- Parameters:
value-- Returns:
-
addTimePartition
-
add
Add a partition- Parameters:
value- - can be null in case of time based partitioning
-
addHistogram
-
getPartitions
-
getPartitionList
-
getHistogram
-
getHistograms
-
iterator
Iterates over the partitions from this interval -
size
public int size()- Returns:
- the number of partitions in this interval
-
removeHistograms
-
toString
- Overrides:
toStringin classTimeInterval
-