Package org.apache.druid.timeline
Interface TimelineLookup<VersionType,ObjectType extends Overshadowable<ObjectType>>
-
- All Known Implementing Classes:
SegmentTimeline
,VersionedIntervalTimeline
public interface TimelineLookup<VersionType,ObjectType extends Overshadowable<ObjectType>>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description PartitionChunk<ObjectType>
findChunk(org.joda.time.Interval interval, VersionType version, int partitionNum)
Finds thePartitionChunk
for the given time interval, version and chunk number.List<TimelineObjectHolder<VersionType,ObjectType>>
lookup(org.joda.time.Interval interval)
Does a lookup for the objects representing the given time interval.List<TimelineObjectHolder<VersionType,ObjectType>>
lookupWithIncompletePartitions(org.joda.time.Interval interval)
Does a lookup for the objects representing the given time interval.
-
-
-
Method Detail
-
lookup
List<TimelineObjectHolder<VersionType,ObjectType>> lookup(org.joda.time.Interval interval)
Does a lookup for the objects representing the given time interval. Will *only* return PartitionHolders that are complete.- Parameters:
interval
- interval to find objects for- Returns:
- Holders representing the interval that the objects exist for, PartitionHolders are guaranteed to be complete. Holders returned sorted by the interval.
-
lookupWithIncompletePartitions
List<TimelineObjectHolder<VersionType,ObjectType>> lookupWithIncompletePartitions(org.joda.time.Interval interval)
Does a lookup for the objects representing the given time interval. Will also return incomplete PartitionHolders.- Parameters:
interval
- interval to find objects for- Returns:
- Holders representing the interval that the objects exist for, PartitionHolders can be incomplete. Holders returned sorted by the interval.
-
findChunk
@Nullable PartitionChunk<ObjectType> findChunk(org.joda.time.Interval interval, VersionType version, int partitionNum)
Finds thePartitionChunk
for the given time interval, version and chunk number.
-
-