Class IntervalSet<T extends Comparable<T>>
java.lang.Object
org.apache.cassandra.db.commitlog.IntervalSet<T>
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()-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classIntervalSet.Builder<T extends Comparable<T>>Builder of interval sets, applying the necessary normalization while adding ranges. -
Constructor Summary
ConstructorsConstructorDescriptionIntervalSet(T start, T end) Construct new set containing the interval with the given start and end position. -
Method Summary
Modifier and TypeMethodDescriptionbooleanstatic <T extends Comparable<T>>
IntervalSet<T>empty()ends()booleaninthashCode()booleanisEmpty()static final <T extends Comparable<T>>
ISerializer<IntervalSet<T>>serializer(ISerializer<T> pointSerializer) starts()toString()
-
Constructor Details
-
IntervalSet
Construct new set containing the interval with the given start and end position.
-
-
Method Details
-
empty
-
contains
-
isEmpty
public boolean isEmpty() -
lowerBound
-
upperBound
-
starts
-
ends
-
toString
-
hashCode
public int hashCode() -
equals
-
serializer
public static final <T extends Comparable<T>> ISerializer<IntervalSet<T>> serializer(ISerializer<T> pointSerializer)
-