Interface RLexSortedSetAsync

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      >  fromElement, boolean fromInclusive,  toElement, boolean toInclusive)
      Returns the number of elements between fromElement and toElement.
      >  toElement, boolean toInclusive)
      Returns the number of head values ending with toElement.
      >  fromElement, boolean fromInclusive)
      Returns the number of tail values starting with fromElement.
      > firstAsync()
      Returns the first element.
      > lastAsync()
      Returns the last element.
      > pollFirstAsync()
      Removes and returns the head element or null if this sorted set is empty.
      > pollLastAsync()
      Removes and returns the tail element or null if this sorted set is empty.
      <>> rangeAsync​(int startIndex, int endIndex)
      Returns values by rank range.
      <>>  fromElement, boolean fromInclusive,  toElement, boolean toInclusive)
      Returns values range starting with fromElement and ending with toElement.
      <>>  fromElement, boolean fromInclusive,  toElement, boolean toInclusive, int offset, int count)
      Returns values range starting with fromElement and ending with toElement.
      <>>  toElement, boolean toInclusive)
      Returns head values range ending with toElement.
      <>>  toElement, boolean toInclusive, int offset, int count)
      Returns head values range ending with toElement.
      <>>  toElement, boolean toInclusive)
      Returns head values range in reverse order ending with toElement.
      <>>  toElement, boolean toInclusive, int offset, int count)
      Returns head values range in reverse order ending with toElement.
      <>>  fromElement, boolean fromInclusive,  toElement, boolean toInclusive)
      Returns values range in reverse order starting with fromElement and ending with toElement.
      <>>  fromElement, boolean fromInclusive,  toElement, boolean toInclusive, int offset, int count)
      Returns values range in reverse order starting with fromElement and ending with toElement.
      <>>  fromElement, boolean fromInclusive)
      Returns tail values range starting with fromElement.
      <>>  fromElement, boolean fromInclusive, int offset, int count)
      Returns tail values range starting with fromElement.
      <>>  fromElement, boolean fromInclusive)
      Returns tail values range in reverse order starting with fromElement.
      <>>  fromElement, boolean fromInclusive, int offset, int count)
      Returns tail values range in reverse order starting with fromElement.
      >  o)
      Returns rank of the element
      <>> readAllAsync()
      Read all values at once.
      >  fromElement, boolean fromInclusive,  toElement, boolean toInclusive)
      Removes values range starting with fromElement and ending with toElement.
      >  toElement, boolean toInclusive)
      Removes head values range ending with toElement.
      >  fromElement, boolean fromInclusive)
      Removes tail values range starting with fromElement.
      >  o)
      Returns rank of value, with the scores ordered from high to low.
    • Method Detail

      • pollLastAsync

        > pollLastAsync()
        Removes and returns the tail element or null if this sorted set is empty.
        Returns:
        the tail element or null if this sorted set is empty
      • pollFirstAsync

        > pollFirstAsync()
        Removes and returns the head element or null if this sorted set is empty.
        Returns:
        the head element, or null if this sorted set is empty
      • firstAsync

        > firstAsync()
        Returns the first element.
        Returns:
        element
      • lastAsync

        > lastAsync()
        Returns the last element.
        Returns:
        element
      • readAllAsync

        <>> readAllAsync()
        Read all values at once.
        Returns:
        collection of values
      • removeRangeAsync

        > removeRangeAsync​( fromElement,
                                          boolean fromInclusive,
                                           toElement,
                                          boolean toInclusive)
        Removes values range starting with fromElement and ending with toElement.
        Parameters:
        fromElement - - start element
        fromInclusive - - start element inclusive
        toElement - - end element
        toInclusive - - end element inclusive
        Returns:
        number of elements removed
      • removeRangeTailAsync

        > removeRangeTailAsync​( fromElement,
                                              boolean fromInclusive)
        Removes tail values range starting with fromElement.
        Parameters:
        fromElement - - start element
        fromInclusive - - start element inclusive
        Returns:
        number of elements removed
      • removeRangeHeadAsync

        > removeRangeHeadAsync​( toElement,
                                              boolean toInclusive)
        Removes head values range ending with toElement.
        Parameters:
        toElement - - end element
        toInclusive - - end element inclusive
        Returns:
        number of elements removed
      • countTailAsync

        > countTailAsync​( fromElement,
                                        boolean fromInclusive)
        Returns the number of tail values starting with fromElement.
        Parameters:
        fromElement - - start element
        fromInclusive - - start element inclusive
        Returns:
        number of elements
      • countHeadAsync

        > countHeadAsync​( toElement,
                                        boolean toInclusive)
        Returns the number of head values ending with toElement.
        Parameters:
        toElement - - end element
        toInclusive - - end element inclusive
        Returns:
        number of elements
      • rangeTailAsync

        <>> rangeTailAsync​( fromElement,
                                                   boolean fromInclusive)
        Returns tail values range starting with fromElement.
        Parameters:
        fromElement - - start element
        fromInclusive - - start element inclusive
        Returns:
        collection of elements
      • rangeHeadAsync

        <>> rangeHeadAsync​( toElement,
                                                   boolean toInclusive)
        Returns head values range ending with toElement.
        Parameters:
        toElement - - end element
        toInclusive - - end element inclusive
        Returns:
        collection of elements
      • rangeAsync

        <>> rangeAsync​( fromElement,
                                               boolean fromInclusive,
                                                toElement,
                                               boolean toInclusive)
        Returns values range starting with fromElement and ending with toElement.
        Parameters:
        fromElement - - start element
        fromInclusive - - start element inclusive
        toElement - - end element
        toInclusive - - end element inclusive
        Returns:
        collection of elements
      • rangeTailAsync

        <>> rangeTailAsync​( fromElement,
                                                   boolean fromInclusive,
                                                   int offset,
                                                   int count)
        Returns tail values range starting with fromElement. Returned collection limited by count and starts with offset.
        Parameters:
        fromElement - - start element
        fromInclusive - - start element inclusive
        offset - - offset of result collection
        count - - amount of result collection
        Returns:
        collection of elements
      • rangeHeadAsync

        <>> rangeHeadAsync​( toElement,
                                                   boolean toInclusive,
                                                   int offset,
                                                   int count)
        Returns head values range ending with toElement. Returned collection limited by count and starts with offset.
        Parameters:
        toElement - - end element
        toInclusive - - end element inclusive
        offset - - offset of result collection
        count - - amount of result collection
        Returns:
        collection of elements
      • rangeAsync

        <>> rangeAsync​( fromElement,
                                               boolean fromInclusive,
                                                toElement,
                                               boolean toInclusive,
                                               int offset,
                                               int count)
        Returns values range starting with fromElement and ending with toElement. Returned collection limited by count and starts with offset.
        Parameters:
        fromElement - - start element
        fromInclusive - - start element inclusive
        toElement - - end element
        toInclusive - - end element inclusive
        offset - - offset of result collection
        count - - amount of result collection
        Returns:
        collection of elements
      • rangeTailReversedAsync

        <>> rangeTailReversedAsync​( fromElement,
                                                           boolean fromInclusive)
        Returns tail values range in reverse order starting with fromElement.
        Parameters:
        fromElement - - start element
        fromInclusive - - start element inclusive
        Returns:
        collection of elements
      • rangeHeadReversedAsync

        <>> rangeHeadReversedAsync​( toElement,
                                                           boolean toInclusive)
        Returns head values range in reverse order ending with toElement.
        Parameters:
        toElement - - end element
        toInclusive - - end element inclusive
        Returns:
        collection of elements
      • rangeReversedAsync

        <>> rangeReversedAsync​( fromElement,
                                                       boolean fromInclusive,
                                                        toElement,
                                                       boolean toInclusive)
        Returns values range in reverse order starting with fromElement and ending with toElement.
        Parameters:
        fromElement - - start element
        fromInclusive - - start element inclusive
        toElement - - end element
        toInclusive - - end element inclusive
        Returns:
        collection of elements
      • rangeTailReversedAsync

        <>> rangeTailReversedAsync​( fromElement,
                                                           boolean fromInclusive,
                                                           int offset,
                                                           int count)
        Returns tail values range in reverse order starting with fromElement. Returned collection limited by count and starts with offset.
        Parameters:
        fromElement - - start element
        fromInclusive - - start element inclusive
        offset - - offset of result collection
        count - - amount of result collection
        Returns:
        collection of elements
      • rangeHeadReversedAsync

        <>> rangeHeadReversedAsync​( toElement,
                                                           boolean toInclusive,
                                                           int offset,
                                                           int count)
        Returns head values range in reverse order ending with toElement. Returned collection limited by count and starts with offset.
        Parameters:
        toElement - - end element
        toInclusive - - end element inclusive
        offset - - offset of result collection
        count - - amount of result collection
        Returns:
        collection of elements
      • rangeReversedAsync

        <>> rangeReversedAsync​( fromElement,
                                                       boolean fromInclusive,
                                                        toElement,
                                                       boolean toInclusive,
                                                       int offset,
                                                       int count)
        Returns values range in reverse order starting with fromElement and ending with toElement. Returned collection limited by count and starts with offset.
        Parameters:
        fromElement - - start element
        fromInclusive - - start element inclusive
        toElement - - end element
        toInclusive - - end element inclusive
        offset - - offset of result collection
        count - - amount of result collection
        Returns:
        collection of elements
      • countAsync

        > countAsync​( fromElement,
                                    boolean fromInclusive,
                                     toElement,
                                    boolean toInclusive)
        Returns the number of elements between fromElement and toElement.
        Parameters:
        fromElement - - start element
        fromInclusive - - start element inclusive
        toElement - - end element
        toInclusive - - end element inclusive
        Returns:
        number of elements
      • rankAsync

        > rankAsync​( o)
        Returns rank of the element
        Parameters:
        o - - element to rank
        Returns:
        rank or null if element does not exist
      • rangeAsync

        <>> rangeAsync​(int startIndex,
                                               int endIndex)
        Returns values by rank range. Indexes are zero based. -1 means the highest score, -2 means the second highest score.
        Parameters:
        startIndex - - start index
        endIndex - - end index
        Returns:
        collection of elements
      • revRankAsync

        > revRankAsync​( o)
        Returns rank of value, with the scores ordered from high to low.
        Parameters:
        o - - value
        Returns:
        rank or null if value does not exist