Comments added

pull/1263/head
Nikita 7 years ago
parent efd17b9440
commit e37729deee

@ -38,7 +38,7 @@ import org.redisson.api.mapreduce.RMapReduce;
public interface RMap<K, V> extends ConcurrentMap<K, V>, RExpirable, RMapAsync<K, V> { public interface RMap<K, V> extends ConcurrentMap<K, V>, RExpirable, RMapAsync<K, V> {
/** /**
* Loads all map entries to this Redis map. * Loads all map entries to this Redis map using {@link org.redisson.api.map.MapLoader}.
* *
* @param replaceExistingValues - <code>true</code> if existed values should be replaced, <code>false</code> otherwise. * @param replaceExistingValues - <code>true</code> if existed values should be replaced, <code>false</code> otherwise.
* @param parallelism - parallelism level, used to increase speed of process execution * @param parallelism - parallelism level, used to increase speed of process execution
@ -46,7 +46,7 @@ public interface RMap<K, V> extends ConcurrentMap<K, V>, RExpirable, RMapAsync<K
void loadAll(boolean replaceExistingValues, int parallelism); void loadAll(boolean replaceExistingValues, int parallelism);
/** /**
* Loads map entries whose keys are listed in defined <code>keys</code> parameter. * Loads map entries using {@link org.redisson.api.map.MapLoader} whose keys are listed in defined <code>keys</code> parameter.
* *
* @param keys - map keys * @param keys - map keys
* @param replaceExistingValues - <code>true</code> if existed values should be replaced, <code>false</code> otherwise. * @param replaceExistingValues - <code>true</code> if existed values should be replaced, <code>false</code> otherwise.

@ -79,6 +79,12 @@ public interface RScoredSortedSet<V> extends RScoredSortedSetAsync<V>, Iterable<
*/ */
Integer revRank(V o); Integer revRank(V o);
/**
* Returns score of element or <code>null</code> if it doesn't exist.
*
* @param o - element
* @return score
*/
Double getScore(V o); Double getScore(V o);
/** /**

@ -52,6 +52,12 @@ public interface RScoredSortedSetAsync<V> extends RExpirableAsync, RSortableAsyn
RFuture<Integer> revRankAsync(V o); RFuture<Integer> revRankAsync(V o);
/**
* Returns score of element or <code>null</code> if it doesn't exist.
*
* @param o - element
* @return score
*/
RFuture<Double> getScoreAsync(V o); RFuture<Double> getScoreAsync(V o);
/** /**

Loading…
Cancel
Save