Interface TimelineLookup<VersionType,ObjectType extends Overshadowable<ObjectType>>

All Known Implementing Classes:
SegmentTimeline, VersionedIntervalTimeline

public interface TimelineLookup<VersionType,ObjectType extends Overshadowable<ObjectType>>
  • Method Details

    • 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 the PartitionChunk for the given time interval, version and chunk number.