public class Range extends Object implements Serializable
Modifier and Type | Field and Description |
---|---|
static Range |
EMPTY_RANGE |
private long |
lower |
private Boolean |
lowerIncluded |
static Range |
REPRESENTABLE_RANGE
The MAXIMUM RANGE of data-keys for the indexing
|
private long |
upper |
private Boolean |
upperIncluded |
Constructor and Description |
---|
Range(long lower,
Boolean lowerIncluded,
long upper,
Boolean upperIncluded) |
Modifier and Type | Method and Description |
---|---|
Boolean |
contains(long v) |
Boolean |
contains(Range range) |
Range |
createSplit(Boolean second)
Creates the Range for the left or right child of the Bucket associated with this range
|
boolean |
equals(Object obj) |
long |
getLower() |
Boolean |
getLowerIncluded() |
long |
getUpper() |
Boolean |
getUpperIncluded() |
int |
hashCode() |
Range |
intersect(Range range) |
Boolean |
isContainedIn(Range range) |
boolean |
isEmpty() |
private Boolean |
isLowerBound(long v) |
private Boolean |
isUpperBound(long v) |
String |
toString() |
public static Range REPRESENTABLE_RANGE
public static Range EMPTY_RANGE
private final Boolean lowerIncluded
private final Boolean upperIncluded
private final long lower
private final long upper
private Boolean isLowerBound(long v)
private Boolean isUpperBound(long v)
public Boolean contains(long v)
public long getLower()
public long getUpper()
public boolean isEmpty()
public Boolean getLowerIncluded()
public Boolean getUpperIncluded()
public Range createSplit(Boolean second)
second
- trigger the creation of the range for the right child (if true) |Copyright © 2018. All rights reserved.