Package redis.clients.jedis.commands
Interface SortedSetBinaryCommands
- All Known Subinterfaces:
JedisBinaryCommands
- All Known Implementing Classes:
Jedis,JedisCluster,JedisPooled,JedisSentineled,JedisSharding,UnifiedJedis
public interface SortedSetBinaryCommands
-
Method Summary
Modifier and TypeMethodDescriptionbzmpop(long timeout, SortedSetOption option, byte[]... keys) bzmpop(long timeout, SortedSetOption option, int count, byte[]... keys) List<byte[]> bzpopmax(double timeout, byte[]... keys) List<byte[]> bzpopmin(double timeout, byte[]... keys) longzadd(byte[] key, double score, byte[] member) longzadd(byte[] key, double score, byte[] member, ZAddParams params) longlongzadd(byte[] key, Map<byte[], Double> scoreMembers, ZAddParams params) zaddIncr(byte[] key, double score, byte[] member, ZAddParams params) longzcard(byte[] key) longzcount(byte[] key, byte[] min, byte[] max) longzcount(byte[] key, double min, double max) Set<byte[]> zdiff(byte[]... keys) longzdiffStore(byte[] dstkey, byte[]... keys) zdiffWithScores(byte[]... keys) doublezincrby(byte[] key, double increment, byte[] member) zincrby(byte[] key, double increment, byte[] member, ZIncrByParams params) Set<byte[]> longzintercard(byte[]... keys) Similar toZINTER, but instead of returning the result set, it returns just the cardinality of the result.longzintercard(long limit, byte[]... keys) Similar toZINTER, but instead of returning the result set, it returns just the cardinality of the result.longzinterstore(byte[] dstkey, byte[]... sets) longzinterstore(byte[] dstkey, ZParams params, byte[]... sets) zinterWithScores(ZParams params, byte[]... keys) longzlexcount(byte[] key, byte[] min, byte[] max) zmpop(SortedSetOption option, byte[]... keys) zmpop(SortedSetOption option, int count, byte[]... keys) zmscore(byte[] key, byte[]... members) zpopmax(byte[] key) zpopmax(byte[] key, int count) zpopmin(byte[] key) zpopmin(byte[] key, int count) byte[]zrandmember(byte[] key) List<byte[]> zrandmember(byte[] key, long count) zrandmemberWithScores(byte[] key, long count) List<byte[]> zrange(byte[] key, long start, long stop) List<byte[]> zrange(byte[] key, ZRangeParams zRangeParams) List<byte[]> zrangeByLex(byte[] key, byte[] min, byte[] max) List<byte[]> zrangeByLex(byte[] key, byte[] min, byte[] max, int offset, int count) List<byte[]> zrangeByScore(byte[] key, byte[] min, byte[] max) List<byte[]> zrangeByScore(byte[] key, byte[] min, byte[] max, int offset, int count) List<byte[]> zrangeByScore(byte[] key, double min, double max) List<byte[]> zrangeByScore(byte[] key, double min, double max, int offset, int count) zrangeByScoreWithScores(byte[] key, byte[] min, byte[] max) zrangeByScoreWithScores(byte[] key, byte[] min, byte[] max, int offset, int count) zrangeByScoreWithScores(byte[] key, double min, double max) zrangeByScoreWithScores(byte[] key, double min, double max, int offset, int count) longzrangestore(byte[] dest, byte[] src, ZRangeParams zRangeParams) zrangeWithScores(byte[] key, long start, long stop) zrangeWithScores(byte[] key, ZRangeParams zRangeParams) zrank(byte[] key, byte[] member) zrankWithScore(byte[] key, byte[] member) longzrem(byte[] key, byte[]... members) longzremrangeByLex(byte[] key, byte[] min, byte[] max) longzremrangeByRank(byte[] key, long start, long stop) longzremrangeByScore(byte[] key, byte[] min, byte[] max) longzremrangeByScore(byte[] key, double min, double max) List<byte[]> zrevrange(byte[] key, long start, long stop) List<byte[]> zrevrangeByLex(byte[] key, byte[] max, byte[] min) List<byte[]> zrevrangeByLex(byte[] key, byte[] max, byte[] min, int offset, int count) List<byte[]> zrevrangeByScore(byte[] key, byte[] max, byte[] min) List<byte[]> zrevrangeByScore(byte[] key, byte[] max, byte[] min, int offset, int count) List<byte[]> zrevrangeByScore(byte[] key, double max, double min) List<byte[]> zrevrangeByScore(byte[] key, double max, double min, int offset, int count) zrevrangeByScoreWithScores(byte[] key, byte[] max, byte[] min) zrevrangeByScoreWithScores(byte[] key, byte[] max, byte[] min, int offset, int count) zrevrangeByScoreWithScores(byte[] key, double max, double min) zrevrangeByScoreWithScores(byte[] key, double max, double min, int offset, int count) zrevrangeWithScores(byte[] key, long start, long stop) zrevrank(byte[] key, byte[] member) zrevrankWithScore(byte[] key, byte[] member) default ScanResult<Tuple> zscan(byte[] key, byte[] cursor) zscan(byte[] key, byte[] cursor, ScanParams params) zscore(byte[] key, byte[] member) Set<byte[]> longzunionstore(byte[] dstkey, byte[]... sets) longzunionstore(byte[] dstkey, ZParams params, byte[]... sets) zunionWithScores(ZParams params, byte[]... keys)
-
Method Details
-
zadd
long zadd(byte[] key, double score, byte[] member) -
zadd
-
zadd
-
zadd
-
zaddIncr
-
zrem
long zrem(byte[] key, byte[]... members) -
zincrby
double zincrby(byte[] key, double increment, byte[] member) -
zincrby
-
zrank
-
zrevrank
-
zrankWithScore
-
zrevrankWithScore
-
zrange
-
zrevrange
-
zrangeWithScores
-
zrevrangeWithScores
-
zrange
-
zrangeWithScores
-
zrangestore
-
zrandmember
byte[] zrandmember(byte[] key) -
zrandmember
-
zrandmemberWithScores
-
zcard
long zcard(byte[] key) -
zscore
-
zmscore
-
zpopmax
-
zpopmax
-
zpopmin
-
zpopmin
-
zcount
long zcount(byte[] key, double min, double max) -
zcount
long zcount(byte[] key, byte[] min, byte[] max) -
zrangeByScore
-
zrangeByScore
-
zrevrangeByScore
-
zrangeByScore
-
zrevrangeByScore
-
zrangeByScore
-
zrevrangeByScore
-
zrangeByScoreWithScores
-
zrevrangeByScoreWithScores
-
zrangeByScoreWithScores
-
zrevrangeByScore
-
zrangeByScoreWithScores
-
zrevrangeByScoreWithScores
-
zrangeByScoreWithScores
-
zrevrangeByScoreWithScores
-
zrevrangeByScoreWithScores
-
zremrangeByRank
long zremrangeByRank(byte[] key, long start, long stop) -
zremrangeByScore
long zremrangeByScore(byte[] key, double min, double max) -
zremrangeByScore
long zremrangeByScore(byte[] key, byte[] min, byte[] max) -
zlexcount
long zlexcount(byte[] key, byte[] min, byte[] max) -
zrangeByLex
-
zrangeByLex
-
zrevrangeByLex
-
zrevrangeByLex
-
zremrangeByLex
long zremrangeByLex(byte[] key, byte[] min, byte[] max) -
zscan
-
zscan
-
bzpopmax
-
bzpopmin
-
zdiff
-
zdiffWithScores
-
zdiffStore
long zdiffStore(byte[] dstkey, byte[]... keys) -
zinter
-
zinterWithScores
-
zinterstore
long zinterstore(byte[] dstkey, byte[]... sets) -
zinterstore
-
zintercard
long zintercard(byte[]... keys) Similar toZINTER, but instead of returning the result set, it returns just the cardinality of the result.Time complexity O(N*K) worst case with N being the smallest input sorted set, K being the number of input sorted sets
- Parameters:
keys- group of sets- Returns:
- The number of elements in the resulting intersection
- See Also:
-
zintercard
long zintercard(long limit, byte[]... keys) Similar toZINTER, but instead of returning the result set, it returns just the cardinality of the result.Time complexity O(N*K) worst case with N being the smallest input sorted set, K being the number of input sorted sets
- Parameters:
limit- If the intersection cardinality reaches limit partway through the computation, the algorithm will exit and yield limit as the cardinalitykeys- group of sets- Returns:
- The number of elements in the resulting intersection
- See Also:
-
zunion
-
zunionWithScores
-
zunionstore
long zunionstore(byte[] dstkey, byte[]... sets) -
zunionstore
-
zmpop
-
zmpop
-
bzmpop
-
bzmpop
KeyValue<byte[],List<Tuple>> bzmpop(long timeout, SortedSetOption option, int count, byte[]... keys)
-