Class Range

java.lang.Object
io.trino.spi.predicate.Range

public final class Range extends Object
A Range of values across the continuous space defined by the types of the Markers
  • Method Details

    • all

      public static Range all(Type type)
    • greaterThan

      public static Range greaterThan(Type type, Object low)
    • greaterThanOrEqual

      public static Range greaterThanOrEqual(Type type, Object low)
    • lessThan

      public static Range lessThan(Type type, Object high)
    • lessThanOrEqual

      public static Range lessThanOrEqual(Type type, Object high)
    • equal

      public static Range equal(Type type, Object value)
    • range

      public static Range range(Type type, Object low, boolean lowInclusive, Object high, boolean highInclusive)
    • getType

      public Type getType()
    • isLowInclusive

      public boolean isLowInclusive()
    • isLowUnbounded

      public boolean isLowUnbounded()
    • getLowBoundedValue

      public Object getLowBoundedValue()
    • getLowValue

      public Optional<Object> getLowValue()
    • isHighInclusive

      public boolean isHighInclusive()
    • isHighUnbounded

      public boolean isHighUnbounded()
    • getHighBoundedValue

      public Object getHighBoundedValue()
    • getHighValue

      public Optional<Object> getHighValue()
    • isSingleValue

      public boolean isSingleValue()
    • getSingleValue

      public Object getSingleValue()
    • isAll

      public boolean isAll()
    • contains

      public boolean contains(Range other)
    • span

      public Range span(Range other)
    • intersect

      public Optional<Range> intersect(Range other)
    • overlaps

      public boolean overlaps(Range other)
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • toString

      public String toString(ConnectorSession session)