Class IntervalSet.Builder<T extends Comparable<T>>
java.lang.Object
org.apache.cassandra.db.commitlog.IntervalSet.Builder<T>
- Enclosing class:
- IntervalSet<T extends Comparable<T>>
Builder of interval sets, applying the necessary normalization while adding ranges.
Data is stored as above, as a sorted map from interval starts to the corresponding end, which satisfies
curr().getKey() <= curr().getValue() < next().getKey()-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidAdd an interval to the set and perform normalization.voidaddAll(IntervalSet<T> otherSet) build()
-
Constructor Details
-
Builder
public Builder() -
Builder
-
-
Method Details
-
add
Add an interval to the set and perform normalization. -
addAll
-
build
-