Class IntervalSet<T extends Comparable<T>>

java.lang.Object
org.apache.cassandra.db.commitlog.IntervalSet<T>

public class IntervalSet<T extends Comparable<T>> extends Object
An immutable set of closed intervals, stored in normalized form (i.e. where overlapping intervals are converted to a single interval covering both). The set is stored as a sorted map from interval starts to the corresponding end. The map satisfies curr().getKey() <= curr().getValue() < next().getKey()
  • Constructor Details

    • IntervalSet

      public IntervalSet(T start, T end)
      Construct new set containing the interval with the given start and end position.
  • Method Details