Package io.etcd.jetcd.options
Class OptionsUtil
- java.lang.Object
-
- io.etcd.jetcd.options.OptionsUtil
-
public final class OptionsUtil extends java.lang.Object
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ByteSequenceprefixEndOf(ByteSequence prefix)Gets the range end of the given prefix.static io.etcd.jetcd.api.RangeRequest.SortOrdertoRangeRequestSortOrder(GetOption.SortOrder order)convert client SortOrder to apu SortOrder.static io.etcd.jetcd.api.RangeRequest.SortTargettoRangeRequestSortTarget(GetOption.SortTarget target)convert client SortTarget to apu SortTarget.
-
-
-
Method Detail
-
prefixEndOf
public static ByteSequence prefixEndOf(ByteSequence prefix)
Gets the range end of the given prefix.The range end is the key plus one (e.g., "aa"+1 == "ab", "a\xff"+1 == "b").
- Parameters:
prefix- the given prefix- Returns:
- the range end of the given prefix
-
toRangeRequestSortOrder
public static io.etcd.jetcd.api.RangeRequest.SortOrder toRangeRequestSortOrder(GetOption.SortOrder order)
convert client SortOrder to apu SortOrder.- Parameters:
order- the order- Returns:
- the translated
RangeRequest.SortOrder
-
toRangeRequestSortTarget
public static io.etcd.jetcd.api.RangeRequest.SortTarget toRangeRequestSortTarget(GetOption.SortTarget target)
convert client SortTarget to apu SortTarget.- Parameters:
target- the target- Returns:
- the translated
RangeRequest.SortTarget
-
-