Class RangeSets

java.lang.Object
org.apache.druid.sql.calcite.filtration.RangeSets

public class RangeSets extends Object
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static 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.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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

      public static com.google.common.collect.RangeSet<Long> fromIntervals(Iterable<org.joda.time.Interval> intervals)
    • toIntervals

      public static List<org.joda.time.Interval> toIntervals(com.google.common.collect.RangeSet<Long> rangeSet)