Class Range
- java.lang.Object
-
- com.amazonaws.athena.connector.lambda.domain.predicate.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.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Rangeall(BlockAllocator allocator, org.apache.arrow.vector.types.pojo.ArrowType type)voidclose()booleancontains(Range other)static Rangeequal(BlockAllocator allocator, org.apache.arrow.vector.types.pojo.ArrowType type, Object value)booleanequals(Object obj)MarkergetHigh()MarkergetLow()ObjectgetSingleValue()org.apache.arrow.vector.types.pojo.ArrowTypegetType()static RangegreaterThan(BlockAllocator allocator, org.apache.arrow.vector.types.pojo.ArrowType type, Object low)static RangegreaterThanOrEqual(BlockAllocator allocator, org.apache.arrow.vector.types.pojo.ArrowType type, Object low)inthashCode()booleanincludes(ValueMarker marker)Rangeintersect(Range other)booleanisAll()booleanisSingleValue()static RangelessThan(BlockAllocator allocator, org.apache.arrow.vector.types.pojo.ArrowType type, Object high)static RangelessThanOrEqual(BlockAllocator allocator, org.apache.arrow.vector.types.pojo.ArrowType type, Object high)booleanoverlaps(Range other)static Rangerange(BlockAllocator allocator, org.apache.arrow.vector.types.pojo.ArrowType type, Object low, boolean lowInclusive, Object high, boolean highInclusive)Rangespan(Range other)StringtoString()
-
-
-
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)
-
close
public void close() throws Exception- Specified by:
closein interfaceAutoCloseable- Throws:
Exception
-
-