Class Range

  • All Implemented Interfaces:
    AutoCloseable

    public class Range
    extends Object
    implements AutoCloseable
    Defines a range whose boundaries are defined by two Markers (e.g. low and high). This is helpful when you want to express a constraint as column between X and Z.
    • Constructor Detail

    • Method Detail

      • all

        public static Range all​(BlockAllocator allocator,
                                org.apache.arrow.vector.types.pojo.ArrowType type)
      • greaterThan

        public static Range greaterThan​(BlockAllocator allocator,
                                        org.apache.arrow.vector.types.pojo.ArrowType type,
                                        Object low)
      • greaterThanOrEqual

        public static Range greaterThanOrEqual​(BlockAllocator allocator,
                                               org.apache.arrow.vector.types.pojo.ArrowType type,
                                               Object low)
      • lessThan

        public static Range lessThan​(BlockAllocator allocator,
                                     org.apache.arrow.vector.types.pojo.ArrowType type,
                                     Object high)
      • lessThanOrEqual

        public static Range lessThanOrEqual​(BlockAllocator allocator,
                                            org.apache.arrow.vector.types.pojo.ArrowType type,
                                            Object high)
      • equal

        public static Range equal​(BlockAllocator allocator,
                                  org.apache.arrow.vector.types.pojo.ArrowType type,
                                  Object value)
      • range

        public static Range range​(BlockAllocator allocator,
                                  org.apache.arrow.vector.types.pojo.ArrowType type,
                                  Object low,
                                  boolean lowInclusive,
                                  Object high,
                                  boolean highInclusive)
      • getType

        public org.apache.arrow.vector.types.pojo.ArrowType getType()
      • getLow

        public Marker getLow()
      • getHigh

        public Marker getHigh()
      • isSingleValue

        public boolean isSingleValue()
      • getSingleValue

        public Object getSingleValue()
      • isAll

        public boolean isAll()
      • includes

        public boolean includes​(ValueMarker marker)
      • contains

        public boolean contains​(Range other)
      • overlaps

        public boolean overlaps​(Range other)
      • intersect

        public Range intersect​(Range other)
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object