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
Modifier and TypeMethodDescriptionfindChunk(org.joda.time.Interval interval, VersionType version, int partitionNum) Finds thePartitionChunkfor the given time interval, version and chunk number.lookup(org.joda.time.Interval interval) Does a lookup for the objects representing the given time interval.lookupWithIncompletePartitions(org.joda.time.Interval interval) Does a lookup for the objects representing the given time interval.
-
Method Details
-
lookup
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 thePartitionChunkfor the given time interval, version and chunk number.
-