Class RangeSets
java.lang.Object
org.apache.druid.sql.calcite.filtration.RangeSets
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic com.google.common.collect.RangeSet<Long>fromIntervals(Iterable<org.joda.time.Interval> intervals) static <T extends Comparable<T>>
com.google.common.collect.RangeSet<T>intersectRanges(Iterable<com.google.common.collect.Range<T>> ranges) Intersects a set of ranges, or returns null if the set is empty.static <T extends Comparable<T>>
com.google.common.collect.RangeSet<T>intersectRangeSets(Iterable<com.google.common.collect.RangeSet<T>> rangeSets) Intersects a set of rangeSets, or returns null if the set is empty.static <T extends Comparable<T>>
com.google.common.collect.RangeSet<T>of(com.google.common.collect.Range<T> range) static List<org.joda.time.Interval>toIntervals(com.google.common.collect.RangeSet<Long> rangeSet) static <T extends Comparable<T>>
com.google.common.collect.RangeSet<T>unionRanges(Iterable<com.google.common.collect.Range<T>> ranges) Unions a set of ranges, or returns null if the set is empty.static <T extends Comparable<T>>
com.google.common.collect.RangeSet<T>unionRangeSets(Iterable<com.google.common.collect.RangeSet<T>> rangeSets) Unions a set of rangeSets, or returns null if the set is empty.
-
Constructor Details
-
RangeSets
public RangeSets()
-
-
Method Details
-
of
public static <T extends Comparable<T>> com.google.common.collect.RangeSet<T> of(com.google.common.collect.Range<T> range) -
unionRanges
public static <T extends Comparable<T>> com.google.common.collect.RangeSet<T> unionRanges(Iterable<com.google.common.collect.Range<T>> ranges) Unions a set of ranges, or returns null if the set is empty. -
unionRangeSets
public static <T extends Comparable<T>> com.google.common.collect.RangeSet<T> unionRangeSets(Iterable<com.google.common.collect.RangeSet<T>> rangeSets) Unions a set of rangeSets, or returns null if the set is empty. -
intersectRanges
public static <T extends Comparable<T>> com.google.common.collect.RangeSet<T> intersectRanges(Iterable<com.google.common.collect.Range<T>> ranges) Intersects a set of ranges, or returns null if the set is empty. -
intersectRangeSets
public static <T extends Comparable<T>> com.google.common.collect.RangeSet<T> intersectRangeSets(Iterable<com.google.common.collect.RangeSet<T>> rangeSets) Intersects a set of rangeSets, or returns null if the set is empty. -
fromIntervals
-
toIntervals
-