public class VersionedIntervalTimeline<VersionType,ObjectType> extends Object implements TimelineLookup<VersionType,ObjectType>
| Modifier and Type | Class and Description |
|---|---|
class |
VersionedIntervalTimeline.TimelineEntry |
| Constructor and Description |
|---|
VersionedIntervalTimeline(Comparator<? super VersionType> versionComparator) |
| Modifier and Type | Method and Description |
|---|---|
void |
add(org.joda.time.Interval interval,
VersionType version,
PartitionChunk<ObjectType> object) |
PartitionHolder<ObjectType> |
findEntry(org.joda.time.Interval interval,
VersionType version) |
Set<TimelineObjectHolder<VersionType,ObjectType>> |
findOvershadowed() |
static VersionedIntervalTimeline<String,DataSegment> |
forSegments(Iterable<DataSegment> segments) |
boolean |
isOvershadowed(org.joda.time.Interval interval,
VersionType version) |
List<TimelineObjectHolder<VersionType,ObjectType>> |
lookup(org.joda.time.Interval interval)
Does a lookup for the objects representing the given time interval.
|
Iterable<TimelineObjectHolder<VersionType,ObjectType>> |
lookupWithIncompletePartitions(org.joda.time.Interval interval)
Does a lookup for the objects representing the given time interval.
|
PartitionChunk<ObjectType> |
remove(org.joda.time.Interval interval,
VersionType version,
PartitionChunk<ObjectType> chunk) |
public VersionedIntervalTimeline(Comparator<? super VersionType> versionComparator)
public static VersionedIntervalTimeline<String,DataSegment> forSegments(Iterable<DataSegment> segments)
public void add(org.joda.time.Interval interval,
VersionType version,
PartitionChunk<ObjectType> object)
public PartitionChunk<ObjectType> remove(org.joda.time.Interval interval, VersionType version, PartitionChunk<ObjectType> chunk)
public PartitionHolder<ObjectType> findEntry(org.joda.time.Interval interval, VersionType version)
findEntry in interface TimelineLookup<VersionType,ObjectType>public List<TimelineObjectHolder<VersionType,ObjectType>> lookup(org.joda.time.Interval interval)
lookup in interface TimelineLookup<VersionType,ObjectType>interval - interval to find objects forpublic Iterable<TimelineObjectHolder<VersionType,ObjectType>> lookupWithIncompletePartitions(org.joda.time.Interval interval)
TimelineLookuplookupWithIncompletePartitions in interface TimelineLookup<VersionType,ObjectType>interval - interval to find objects forpublic Set<TimelineObjectHolder<VersionType,ObjectType>> findOvershadowed()
public boolean isOvershadowed(org.joda.time.Interval interval,
VersionType version)
Copyright © 2011–2017. All rights reserved.