public class RangeCheckUtil extends Object
Note: In order to be a useful check on the mapping of predicates across shards, the check needs to verify that the as-bound predicate either lies within or spans the shard, i.e., that the interaction of the as-bound predicate and the shard is not empty.
Constructor and Description |
---|
RangeCheckUtil() |
Modifier and Type | Method and Description |
---|---|
static boolean |
rangeCheck(ISeparatorKeys pmd,
byte[] key,
boolean allowUpperBound)
Verify that the key lies within the key range of an index partition.
|
public static boolean rangeCheck(ISeparatorKeys pmd, byte[] key, boolean allowUpperBound)
key
- The key.allowUpperBound
- true
iff the key represents an inclusive
upper bound and thus must be allowed to be LTE to the right
separator key for the index partition. For example, this would
be true
for the toKey parameter on
rangeCount or rangeIterator methods.true
always.IllegalArgumentException
- if the key is null
KeyOutOfRangeException
- if the key does not lie within the index partition.BytesUtil.rangeCheck(byte[], byte[], byte[])
Copyright © 2006–2019 SYSTAP, LLC DBA Blazegraph. All rights reserved.