Add missing zRevRangeByScore ops to StringRedisConnection
DATAREDIS-145
This commit is contained in:
@@ -2040,8 +2040,40 @@ public class DefaultStringRedisConnection implements StringRedisConnection {
|
||||
}
|
||||
return tupleToStringTuple.convert(results);
|
||||
}
|
||||
|
||||
|
||||
public Set<String> zRevRangeByScore(String key, double min, double max) {
|
||||
Set<byte[]> results = delegate.zRevRangeByScore(serialize(key), min, max);
|
||||
if(isPipelined()) {
|
||||
pipeline(byteSetToStringSet);
|
||||
}
|
||||
return byteSetToStringSet.convert(results);
|
||||
}
|
||||
|
||||
public Set<StringTuple> zRevRangeByScoreWithScores(String key, double min, double max) {
|
||||
Set<Tuple> results = delegate.zRevRangeByScoreWithScores(serialize(key), min, max);
|
||||
if(isPipelined()) {
|
||||
pipeline(tupleToStringTuple);
|
||||
}
|
||||
return tupleToStringTuple.convert(results);
|
||||
}
|
||||
|
||||
public Set<String> zRevRangeByScore(String key, double min, double max, long offset, long count) {
|
||||
Set<byte[]> results = delegate.zRevRangeByScore(serialize(key), min, max, offset, count);
|
||||
if(isPipelined()) {
|
||||
pipeline(byteSetToStringSet);
|
||||
}
|
||||
return byteSetToStringSet.convert(results);
|
||||
}
|
||||
|
||||
public Set<StringTuple> zRevRangeByScoreWithScores(String key, double min, double max,
|
||||
long offset, long count) {
|
||||
Set<Tuple> results = delegate.zRevRangeByScoreWithScores(serialize(key), min, max, offset, count);
|
||||
if(isPipelined()) {
|
||||
pipeline(tupleToStringTuple);
|
||||
}
|
||||
return tupleToStringTuple.convert(results);
|
||||
}
|
||||
|
||||
public Long zRevRank(String key, String value) {
|
||||
Long result = delegate.zRevRank(serialize(key), serialize(value));
|
||||
if(isPipelined()) {
|
||||
|
||||
@@ -207,6 +207,14 @@ public interface StringRedisConnection extends RedisConnection {
|
||||
|
||||
Set<StringTuple> zRevRangeWithScores(String key, long start, long end);
|
||||
|
||||
Set<String> zRevRangeByScore(String key, double min, double max);
|
||||
|
||||
Set<StringTuple> zRevRangeByScoreWithScores(String key, double min, double max);
|
||||
|
||||
Set<String> zRevRangeByScore(String key, double min, double max, long offset, long count);
|
||||
|
||||
Set<StringTuple> zRevRangeByScoreWithScores(String key, double min, double max, long offset, long count);
|
||||
|
||||
Set<String> zRangeByScore(String key, double min, double max);
|
||||
|
||||
Set<StringTuple> zRangeByScoreWithScores(String key, double min, double max);
|
||||
|
||||
Reference in New Issue
Block a user