@API(value=MAINTAINED) public class KeyRange extends Object
Constructor and Description |
---|
KeyRange(byte[] lowKey,
byte[] highKey)
Creates a key range.
|
KeyRange(byte[] lowKey,
EndpointType lowEndpoint,
byte[] highKey,
EndpointType highEndpoint)
Creates a key range.
|
Modifier and Type | Method and Description |
---|---|
EndpointType |
getHighEndpoint() |
byte[] |
getHighKey()
Returns the upper boundary of the range to be scanned.
|
EndpointType |
getLowEndpoint() |
byte[] |
getLowKey()
Returns the lower boundary of the range to be scanned.
|
public KeyRange(@Nonnull byte[] lowKey, @Nonnull EndpointType lowEndpoint, @Nonnull byte[] highKey, @Nonnull EndpointType highEndpoint)
lowKey
- the starting key in the range. Note that a direct reference to this key is retained, so
care must be taken not to modify its contentslowEndpoint
- how the low endpoint is to be treatedhighKey
- the ending key in the range. Note that a direct reference to this key is retained, so
care must be taken not to modify its contentshighEndpoint
- how the high endpoint is to be treated@Nonnull public byte[] getLowKey()
getLowEndpoint()
. The value returned by this method should be treated as immutable and
must not be modified by the caller.@Nonnull public EndpointType getLowEndpoint()
@Nonnull public byte[] getHighKey()
getHighEndpoint()
. The value returned by this method should be treated as immutable and
must not be modified by the caller.@Nonnull public EndpointType getHighEndpoint()