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 Range
all(BlockAllocator allocator, org.apache.arrow.vector.types.pojo.ArrowType type)
void
close()
boolean
contains(Range other)
static Range
equal(BlockAllocator allocator, org.apache.arrow.vector.types.pojo.ArrowType type, Object value)
boolean
equals(Object obj)
Marker
getHigh()
Marker
getLow()
Object
getSingleValue()
org.apache.arrow.vector.types.pojo.ArrowType
getType()
static Range
greaterThan(BlockAllocator allocator, org.apache.arrow.vector.types.pojo.ArrowType type, Object low)
static Range
greaterThanOrEqual(BlockAllocator allocator, org.apache.arrow.vector.types.pojo.ArrowType type, Object low)
int
hashCode()
boolean
includes(ValueMarker marker)
Range
intersect(Range other)
boolean
isAll()
boolean
isSingleValue()
static Range
lessThan(BlockAllocator allocator, org.apache.arrow.vector.types.pojo.ArrowType type, Object high)
static Range
lessThanOrEqual(BlockAllocator allocator, org.apache.arrow.vector.types.pojo.ArrowType type, Object high)
boolean
overlaps(Range other)
static Range
range(BlockAllocator allocator, org.apache.arrow.vector.types.pojo.ArrowType type, Object low, boolean lowInclusive, Object high, boolean highInclusive)
Range
span(Range other)
String
toString()
-
-
-
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:
close
in interfaceAutoCloseable
- Throws:
Exception
-
-