public final class OptionsUtil extends Object
| Modifier and Type | Method and Description |
|---|---|
static ByteSequence |
prefixEndOf(ByteSequence prefix)
Gets the range end of the given prefix.
|
static RangeRequest.SortOrder |
toRangeRequestSortOrder(GetOption.SortOrder order)
convert client SortOrder to apu SortOrder.
|
static RangeRequest.SortTarget |
toRangeRequestSortTarget(GetOption.SortTarget target)
convert client SortTarget to apu SortTarget.
|
public static ByteSequence prefixEndOf(ByteSequence prefix)
The range end is the key plus one (e.g., "aa"+1 == "ab", "a\xff"+1 == "b").
prefix - the given prefixpublic static RangeRequest.SortOrder toRangeRequestSortOrder(GetOption.SortOrder order)
order - the orderRangeRequest.SortOrderpublic static RangeRequest.SortTarget toRangeRequestSortTarget(GetOption.SortTarget target)
target - the targetRangeRequest.SortTargetCopyright © 2021. All rights reserved.