Class OptionsUtil


  • public final class OptionsUtil
    extends java.lang.Object
    • 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