Interface RSortedSet<V>

Type Parameters:
V - value type
All Superinterfaces:
Collection<V>, Iterable<V>, RObject, RObjectAsync, Set<V>, SortedSet<V>
All Known Subinterfaces:
RLexSortedSet
All Known Implementing Classes:
RedissonLexSortedSet, RedissonSortedSet

public interface RSortedSet<V> extends SortedSet<V>, RObject
Author:
Nikita Koksharov
  • Method Details

    • mapReduce

      <KOut, VOut> RCollectionMapReduce<V,KOut,VOut> mapReduce()
      Returns RMapReduce object associated with this object
      Type Parameters:
      KOut - output key
      VOut - output value
      Returns:
      MapReduce instance
    • readAll

      Collection<V> readAll()
    • readAllAsync

      RFuture<Collection<V>> readAllAsync()
    • addAsync

      RFuture<Boolean> addAsync(V value)
    • removeAsync

      RFuture<Boolean> removeAsync(Object value)
    • trySetComparator

      boolean trySetComparator(Comparator<? super V> comparator)
      Sets new comparator only if current set is empty
      Parameters:
      comparator - for values
      Returns:
      true if new comparator setted false otherwise
    • distributedIterator

      Iterator<V> distributedIterator(int count)
      Returns element iterator that can be shared across multiple applications. Creating multiple iterators on the same object with this method will result in a single shared iterator. See RList.distributedIterator(String, int) for creating different iterators.
      Parameters:
      count - batch size
      Returns:
      shared elements iterator
    • distributedIterator

      Iterator<V> distributedIterator(String iteratorName, int count)
      Returns iterator over elements that match specified pattern. Iterator can be shared across multiple applications. Creating multiple iterators on the same object with this method will result in a single shared iterator. Iterator name must be resolved to the same hash slot as list name.
      Parameters:
      count - batch size
      iteratorName - redis object name to which cursor will be saved
      Returns:
      shared elements iterator