public interface SortedSetBinaryCommands
Modifier and Type | Method and Description |
---|---|
KeyValue<byte[],java.util.List<Tuple>> |
bzmpop(long timeout,
SortedSetOption option,
byte[]... keys) |
KeyValue<byte[],java.util.List<Tuple>> |
bzmpop(long timeout,
SortedSetOption option,
int count,
byte[]... keys) |
java.util.List<byte[]> |
bzpopmax(double timeout,
byte[]... keys) |
java.util.List<byte[]> |
bzpopmin(double timeout,
byte[]... keys) |
long |
zadd(byte[] key,
double score,
byte[] member) |
long |
zadd(byte[] key,
double score,
byte[] member,
ZAddParams params) |
long |
zadd(byte[] key,
java.util.Map<byte[],java.lang.Double> scoreMembers) |
long |
zadd(byte[] key,
java.util.Map<byte[],java.lang.Double> scoreMembers,
ZAddParams params) |
java.lang.Double |
zaddIncr(byte[] key,
double score,
byte[] member,
ZAddParams params) |
long |
zcard(byte[] key) |
long |
zcount(byte[] key,
byte[] min,
byte[] max) |
long |
zcount(byte[] key,
double min,
double max) |
java.util.Set<byte[]> |
zdiff(byte[]... keys) |
long |
zdiffStore(byte[] dstkey,
byte[]... keys) |
java.util.Set<Tuple> |
zdiffWithScores(byte[]... keys) |
double |
zincrby(byte[] key,
double increment,
byte[] member) |
java.lang.Double |
zincrby(byte[] key,
double increment,
byte[] member,
ZIncrByParams params) |
java.util.Set<byte[]> |
zinter(ZParams params,
byte[]... keys) |
long |
zintercard(byte[]... keys)
Similar to
ZINTER , but
instead of returning the result set, it returns just the cardinality of the result. |
long |
zintercard(long limit,
byte[]... keys)
Similar to
ZINTER , but
instead of returning the result set, it returns just the cardinality of the result. |
long |
zinterstore(byte[] dstkey,
byte[]... sets) |
long |
zinterstore(byte[] dstkey,
ZParams params,
byte[]... sets) |
java.util.Set<Tuple> |
zinterWithScores(ZParams params,
byte[]... keys) |
long |
zlexcount(byte[] key,
byte[] min,
byte[] max) |
KeyValue<byte[],java.util.List<Tuple>> |
zmpop(SortedSetOption option,
byte[]... keys) |
KeyValue<byte[],java.util.List<Tuple>> |
zmpop(SortedSetOption option,
int count,
byte[]... keys) |
java.util.List<java.lang.Double> |
zmscore(byte[] key,
byte[]... members) |
Tuple |
zpopmax(byte[] key) |
java.util.List<Tuple> |
zpopmax(byte[] key,
int count) |
Tuple |
zpopmin(byte[] key) |
java.util.List<Tuple> |
zpopmin(byte[] key,
int count) |
byte[] |
zrandmember(byte[] key) |
java.util.List<byte[]> |
zrandmember(byte[] key,
long count) |
java.util.List<Tuple> |
zrandmemberWithScores(byte[] key,
long count) |
java.util.List<byte[]> |
zrange(byte[] key,
long start,
long stop) |
java.util.List<byte[]> |
zrange(byte[] key,
ZRangeParams zRangeParams) |
java.util.List<byte[]> |
zrangeByLex(byte[] key,
byte[] min,
byte[] max) |
java.util.List<byte[]> |
zrangeByLex(byte[] key,
byte[] min,
byte[] max,
int offset,
int count) |
java.util.List<byte[]> |
zrangeByScore(byte[] key,
byte[] min,
byte[] max) |
java.util.List<byte[]> |
zrangeByScore(byte[] key,
byte[] min,
byte[] max,
int offset,
int count) |
java.util.List<byte[]> |
zrangeByScore(byte[] key,
double min,
double max) |
java.util.List<byte[]> |
zrangeByScore(byte[] key,
double min,
double max,
int offset,
int count) |
java.util.List<Tuple> |
zrangeByScoreWithScores(byte[] key,
byte[] min,
byte[] max) |
java.util.List<Tuple> |
zrangeByScoreWithScores(byte[] key,
byte[] min,
byte[] max,
int offset,
int count) |
java.util.List<Tuple> |
zrangeByScoreWithScores(byte[] key,
double min,
double max) |
java.util.List<Tuple> |
zrangeByScoreWithScores(byte[] key,
double min,
double max,
int offset,
int count) |
long |
zrangestore(byte[] dest,
byte[] src,
ZRangeParams zRangeParams) |
java.util.List<Tuple> |
zrangeWithScores(byte[] key,
long start,
long stop) |
java.util.List<Tuple> |
zrangeWithScores(byte[] key,
ZRangeParams zRangeParams) |
java.lang.Long |
zrank(byte[] key,
byte[] member) |
KeyValue<java.lang.Long,java.lang.Double> |
zrankWithScore(byte[] key,
byte[] member) |
long |
zrem(byte[] key,
byte[]... members) |
long |
zremrangeByLex(byte[] key,
byte[] min,
byte[] max) |
long |
zremrangeByRank(byte[] key,
long start,
long stop) |
long |
zremrangeByScore(byte[] key,
byte[] min,
byte[] max) |
long |
zremrangeByScore(byte[] key,
double min,
double max) |
java.util.List<byte[]> |
zrevrange(byte[] key,
long start,
long stop) |
java.util.List<byte[]> |
zrevrangeByLex(byte[] key,
byte[] max,
byte[] min) |
java.util.List<byte[]> |
zrevrangeByLex(byte[] key,
byte[] max,
byte[] min,
int offset,
int count) |
java.util.List<byte[]> |
zrevrangeByScore(byte[] key,
byte[] max,
byte[] min) |
java.util.List<byte[]> |
zrevrangeByScore(byte[] key,
byte[] max,
byte[] min,
int offset,
int count) |
java.util.List<byte[]> |
zrevrangeByScore(byte[] key,
double max,
double min) |
java.util.List<byte[]> |
zrevrangeByScore(byte[] key,
double max,
double min,
int offset,
int count) |
java.util.List<Tuple> |
zrevrangeByScoreWithScores(byte[] key,
byte[] max,
byte[] min) |
java.util.List<Tuple> |
zrevrangeByScoreWithScores(byte[] key,
byte[] max,
byte[] min,
int offset,
int count) |
java.util.List<Tuple> |
zrevrangeByScoreWithScores(byte[] key,
double max,
double min) |
java.util.List<Tuple> |
zrevrangeByScoreWithScores(byte[] key,
double max,
double min,
int offset,
int count) |
java.util.List<Tuple> |
zrevrangeWithScores(byte[] key,
long start,
long stop) |
java.lang.Long |
zrevrank(byte[] key,
byte[] member) |
KeyValue<java.lang.Long,java.lang.Double> |
zrevrankWithScore(byte[] key,
byte[] member) |
default ScanResult<Tuple> |
zscan(byte[] key,
byte[] cursor) |
ScanResult<Tuple> |
zscan(byte[] key,
byte[] cursor,
ScanParams params) |
java.lang.Double |
zscore(byte[] key,
byte[] member) |
java.util.Set<byte[]> |
zunion(ZParams params,
byte[]... keys) |
long |
zunionstore(byte[] dstkey,
byte[]... sets) |
long |
zunionstore(byte[] dstkey,
ZParams params,
byte[]... sets) |
java.util.Set<Tuple> |
zunionWithScores(ZParams params,
byte[]... keys) |
long zadd(byte[] key, double score, byte[] member)
long zadd(byte[] key, double score, byte[] member, ZAddParams params)
long zadd(byte[] key, java.util.Map<byte[],java.lang.Double> scoreMembers)
long zadd(byte[] key, java.util.Map<byte[],java.lang.Double> scoreMembers, ZAddParams params)
java.lang.Double zaddIncr(byte[] key, double score, byte[] member, ZAddParams params)
long zrem(byte[] key, byte[]... members)
double zincrby(byte[] key, double increment, byte[] member)
java.lang.Double zincrby(byte[] key, double increment, byte[] member, ZIncrByParams params)
java.lang.Long zrank(byte[] key, byte[] member)
java.lang.Long zrevrank(byte[] key, byte[] member)
KeyValue<java.lang.Long,java.lang.Double> zrankWithScore(byte[] key, byte[] member)
KeyValue<java.lang.Long,java.lang.Double> zrevrankWithScore(byte[] key, byte[] member)
java.util.List<byte[]> zrange(byte[] key, long start, long stop)
java.util.List<byte[]> zrevrange(byte[] key, long start, long stop)
java.util.List<Tuple> zrangeWithScores(byte[] key, long start, long stop)
java.util.List<Tuple> zrevrangeWithScores(byte[] key, long start, long stop)
java.util.List<byte[]> zrange(byte[] key, ZRangeParams zRangeParams)
java.util.List<Tuple> zrangeWithScores(byte[] key, ZRangeParams zRangeParams)
long zrangestore(byte[] dest, byte[] src, ZRangeParams zRangeParams)
byte[] zrandmember(byte[] key)
java.util.List<byte[]> zrandmember(byte[] key, long count)
java.util.List<Tuple> zrandmemberWithScores(byte[] key, long count)
long zcard(byte[] key)
java.lang.Double zscore(byte[] key, byte[] member)
java.util.List<java.lang.Double> zmscore(byte[] key, byte[]... members)
Tuple zpopmax(byte[] key)
java.util.List<Tuple> zpopmax(byte[] key, int count)
Tuple zpopmin(byte[] key)
java.util.List<Tuple> zpopmin(byte[] key, int count)
long zcount(byte[] key, double min, double max)
long zcount(byte[] key, byte[] min, byte[] max)
java.util.List<byte[]> zrangeByScore(byte[] key, double min, double max)
java.util.List<byte[]> zrangeByScore(byte[] key, byte[] min, byte[] max)
java.util.List<byte[]> zrevrangeByScore(byte[] key, double max, double min)
java.util.List<byte[]> zrangeByScore(byte[] key, double min, double max, int offset, int count)
java.util.List<byte[]> zrevrangeByScore(byte[] key, byte[] max, byte[] min)
java.util.List<byte[]> zrangeByScore(byte[] key, byte[] min, byte[] max, int offset, int count)
java.util.List<byte[]> zrevrangeByScore(byte[] key, double max, double min, int offset, int count)
java.util.List<Tuple> zrangeByScoreWithScores(byte[] key, double min, double max)
java.util.List<Tuple> zrevrangeByScoreWithScores(byte[] key, double max, double min)
java.util.List<Tuple> zrangeByScoreWithScores(byte[] key, double min, double max, int offset, int count)
java.util.List<byte[]> zrevrangeByScore(byte[] key, byte[] max, byte[] min, int offset, int count)
java.util.List<Tuple> zrangeByScoreWithScores(byte[] key, byte[] min, byte[] max)
java.util.List<Tuple> zrevrangeByScoreWithScores(byte[] key, byte[] max, byte[] min)
java.util.List<Tuple> zrangeByScoreWithScores(byte[] key, byte[] min, byte[] max, int offset, int count)
java.util.List<Tuple> zrevrangeByScoreWithScores(byte[] key, double max, double min, int offset, int count)
java.util.List<Tuple> zrevrangeByScoreWithScores(byte[] key, byte[] max, byte[] min, int offset, int count)
long zremrangeByRank(byte[] key, long start, long stop)
long zremrangeByScore(byte[] key, double min, double max)
long zremrangeByScore(byte[] key, byte[] min, byte[] max)
long zlexcount(byte[] key, byte[] min, byte[] max)
java.util.List<byte[]> zrangeByLex(byte[] key, byte[] min, byte[] max)
java.util.List<byte[]> zrangeByLex(byte[] key, byte[] min, byte[] max, int offset, int count)
java.util.List<byte[]> zrevrangeByLex(byte[] key, byte[] max, byte[] min)
java.util.List<byte[]> zrevrangeByLex(byte[] key, byte[] max, byte[] min, int offset, int count)
long zremrangeByLex(byte[] key, byte[] min, byte[] max)
default ScanResult<Tuple> zscan(byte[] key, byte[] cursor)
ScanResult<Tuple> zscan(byte[] key, byte[] cursor, ScanParams params)
java.util.List<byte[]> bzpopmax(double timeout, byte[]... keys)
java.util.List<byte[]> bzpopmin(double timeout, byte[]... keys)
java.util.Set<byte[]> zdiff(byte[]... keys)
java.util.Set<Tuple> zdiffWithScores(byte[]... keys)
long zdiffStore(byte[] dstkey, byte[]... keys)
java.util.Set<byte[]> zinter(ZParams params, byte[]... keys)
long zinterstore(byte[] dstkey, byte[]... sets)
long zinterstore(byte[] dstkey, ZParams params, byte[]... sets)
long zintercard(byte[]... keys)
ZINTER
, 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
keys
- group of setsSortedSetBinaryCommands#zinter(ZParams, byte[]...)
long zintercard(long limit, byte[]... keys)
ZINTER
, 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
limit
- If the intersection cardinality reaches limit partway through the computation,
the algorithm will exit and yield limit as the cardinalitykeys
- group of setsSortedSetBinaryCommands#zinter(ZParams, byte[]...)
java.util.Set<byte[]> zunion(ZParams params, byte[]... keys)
long zunionstore(byte[] dstkey, byte[]... sets)
long zunionstore(byte[] dstkey, ZParams params, byte[]... sets)
KeyValue<byte[],java.util.List<Tuple>> zmpop(SortedSetOption option, byte[]... keys)
KeyValue<byte[],java.util.List<Tuple>> zmpop(SortedSetOption option, int count, byte[]... keys)
KeyValue<byte[],java.util.List<Tuple>> bzmpop(long timeout, SortedSetOption option, byte[]... keys)
KeyValue<byte[],java.util.List<Tuple>> bzmpop(long timeout, SortedSetOption option, int count, byte[]... keys)
Copyright © 2023. All rights reserved.