redis.clients.jedis
Class BinaryShardedJedis
java.lang.Object
redis.clients.util.Sharded<Jedis,JedisShardInfo>
redis.clients.jedis.BinaryShardedJedis
- All Implemented Interfaces:
- BinaryJedisCommands
- Direct Known Subclasses:
- ShardedJedis
public class BinaryShardedJedis
- extends Sharded<Jedis,JedisShardInfo>
- implements BinaryJedisCommands
Method Summary |
java.lang.Long |
append(byte[] key,
byte[] value)
|
protected Jedis |
create(JedisShardInfo shard)
|
java.lang.Long |
decr(byte[] key)
|
java.lang.Long |
decrBy(byte[] key,
long integer)
|
void |
disconnect()
|
java.lang.Boolean |
exists(byte[] key)
|
java.lang.Long |
expire(byte[] key,
int seconds)
|
java.lang.Long |
expireAt(byte[] key,
long unixTime)
|
byte[] |
get(byte[] key)
|
byte[] |
getSet(byte[] key,
byte[] value)
|
java.lang.Long |
hdel(byte[] key,
byte[] field)
|
java.lang.Boolean |
hexists(byte[] key,
byte[] field)
|
byte[] |
hget(byte[] key,
byte[] field)
|
java.util.Map<byte[],byte[]> |
hgetAll(byte[] key)
|
java.lang.Long |
hincrBy(byte[] key,
byte[] field,
long value)
|
java.util.Set<byte[]> |
hkeys(byte[] key)
|
java.lang.Long |
hlen(byte[] key)
|
java.util.List<byte[]> |
hmget(byte[] key,
byte[]... fields)
|
java.lang.String |
hmset(byte[] key,
java.util.Map<byte[],byte[]> hash)
|
java.lang.Long |
hset(byte[] key,
byte[] field,
byte[] value)
|
java.lang.Long |
hsetnx(byte[] key,
byte[] field,
byte[] value)
|
java.util.Collection<byte[]> |
hvals(byte[] key)
|
java.lang.Long |
incr(byte[] key)
|
java.lang.Long |
incrBy(byte[] key,
long integer)
|
byte[] |
lindex(byte[] key,
int index)
|
java.lang.Long |
linsert(byte[] key,
BinaryClient.LIST_POSITION where,
byte[] pivot,
byte[] value)
|
java.lang.Long |
llen(byte[] key)
|
byte[] |
lpop(byte[] key)
|
java.lang.Long |
lpush(byte[] key,
byte[] string)
|
java.util.List<byte[]> |
lrange(byte[] key,
int start,
int end)
|
java.lang.Long |
lrem(byte[] key,
int count,
byte[] value)
|
java.lang.String |
lset(byte[] key,
int index,
byte[] value)
|
java.lang.String |
ltrim(byte[] key,
int start,
int end)
|
java.util.List<java.lang.Object> |
pipelined(ShardedJedisPipeline shardedJedisPipeline)
|
byte[] |
rpop(byte[] key)
|
java.lang.Long |
rpush(byte[] key,
byte[] string)
|
java.lang.Long |
sadd(byte[] key,
byte[] member)
|
java.lang.Long |
scard(byte[] key)
|
java.lang.String |
set(byte[] key,
byte[] value)
|
java.lang.String |
setex(byte[] key,
int seconds,
byte[] value)
|
java.lang.Long |
setnx(byte[] key,
byte[] value)
|
java.lang.Boolean |
sismember(byte[] key,
byte[] member)
|
java.util.Set<byte[]> |
smembers(byte[] key)
|
java.util.List<byte[]> |
sort(byte[] key)
|
java.util.List<byte[]> |
sort(byte[] key,
SortingParams sortingParameters)
|
byte[] |
spop(byte[] key)
|
byte[] |
srandmember(byte[] key)
|
java.lang.Long |
srem(byte[] key,
byte[] member)
|
byte[] |
substr(byte[] key,
int start,
int end)
|
java.lang.Long |
ttl(byte[] key)
|
java.lang.String |
type(byte[] key)
|
java.lang.Long |
zadd(byte[] key,
double score,
byte[] member)
|
java.lang.Long |
zcard(byte[] key)
|
java.lang.Long |
zcount(byte[] key,
double min,
double max)
|
java.lang.Double |
zincrby(byte[] key,
double score,
byte[] member)
|
java.util.Set<byte[]> |
zrange(byte[] key,
int start,
int end)
|
java.util.Set<byte[]> |
zrangeByScore(byte[] key,
double min,
double max)
|
java.util.Set<byte[]> |
zrangeByScore(byte[] key,
double min,
double max,
int offset,
int count)
|
java.util.Set<Tuple> |
zrangeByScoreWithScores(byte[] key,
double min,
double max)
|
java.util.Set<Tuple> |
zrangeByScoreWithScores(byte[] key,
double min,
double max,
int offset,
int count)
|
java.util.Set<Tuple> |
zrangeWithScores(byte[] key,
int start,
int end)
|
java.lang.Long |
zrank(byte[] key,
byte[] member)
|
java.lang.Long |
zrem(byte[] key,
byte[] member)
|
java.lang.Long |
zremrangeByRank(byte[] key,
int start,
int end)
|
java.lang.Long |
zremrangeByScore(byte[] key,
double start,
double end)
|
java.util.Set<byte[]> |
zrevrange(byte[] key,
int start,
int end)
|
java.util.Set<byte[]> |
zrevrangeByScore(byte[] key,
double max,
double min)
|
java.util.Set<byte[]> |
zrevrangeByScore(byte[] key,
double max,
double min,
int offset,
int count)
|
java.util.Set<Tuple> |
zrevrangeByScoreWithScores(byte[] key,
double max,
double min)
|
java.util.Set<Tuple> |
zrevrangeByScoreWithScores(byte[] key,
double max,
double min,
int offset,
int count)
|
java.util.Set<Tuple> |
zrevrangeWithScores(byte[] key,
int start,
int end)
|
java.lang.Long |
zrevrank(byte[] key,
byte[] member)
|
java.lang.Double |
zscore(byte[] key,
byte[] member)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BinaryShardedJedis
public BinaryShardedJedis(java.util.List<JedisShardInfo> shards)
BinaryShardedJedis
public BinaryShardedJedis(java.util.List<JedisShardInfo> shards,
Hashing algo)
BinaryShardedJedis
public BinaryShardedJedis(java.util.List<JedisShardInfo> shards,
java.util.regex.Pattern keyTagPattern)
BinaryShardedJedis
public BinaryShardedJedis(java.util.List<JedisShardInfo> shards,
Hashing algo,
java.util.regex.Pattern keyTagPattern)
disconnect
public void disconnect()
throws java.io.IOException
- Throws:
java.io.IOException
create
protected Jedis create(JedisShardInfo shard)
set
public java.lang.String set(byte[] key,
byte[] value)
- Specified by:
set
in interface BinaryJedisCommands
get
public byte[] get(byte[] key)
- Specified by:
get
in interface BinaryJedisCommands
exists
public java.lang.Boolean exists(byte[] key)
- Specified by:
exists
in interface BinaryJedisCommands
type
public java.lang.String type(byte[] key)
- Specified by:
type
in interface BinaryJedisCommands
expire
public java.lang.Long expire(byte[] key,
int seconds)
- Specified by:
expire
in interface BinaryJedisCommands
expireAt
public java.lang.Long expireAt(byte[] key,
long unixTime)
- Specified by:
expireAt
in interface BinaryJedisCommands
ttl
public java.lang.Long ttl(byte[] key)
- Specified by:
ttl
in interface BinaryJedisCommands
getSet
public byte[] getSet(byte[] key,
byte[] value)
- Specified by:
getSet
in interface BinaryJedisCommands
setnx
public java.lang.Long setnx(byte[] key,
byte[] value)
- Specified by:
setnx
in interface BinaryJedisCommands
setex
public java.lang.String setex(byte[] key,
int seconds,
byte[] value)
- Specified by:
setex
in interface BinaryJedisCommands
decrBy
public java.lang.Long decrBy(byte[] key,
long integer)
- Specified by:
decrBy
in interface BinaryJedisCommands
decr
public java.lang.Long decr(byte[] key)
- Specified by:
decr
in interface BinaryJedisCommands
incrBy
public java.lang.Long incrBy(byte[] key,
long integer)
- Specified by:
incrBy
in interface BinaryJedisCommands
incr
public java.lang.Long incr(byte[] key)
- Specified by:
incr
in interface BinaryJedisCommands
append
public java.lang.Long append(byte[] key,
byte[] value)
- Specified by:
append
in interface BinaryJedisCommands
substr
public byte[] substr(byte[] key,
int start,
int end)
- Specified by:
substr
in interface BinaryJedisCommands
hset
public java.lang.Long hset(byte[] key,
byte[] field,
byte[] value)
- Specified by:
hset
in interface BinaryJedisCommands
hget
public byte[] hget(byte[] key,
byte[] field)
- Specified by:
hget
in interface BinaryJedisCommands
hsetnx
public java.lang.Long hsetnx(byte[] key,
byte[] field,
byte[] value)
- Specified by:
hsetnx
in interface BinaryJedisCommands
hmset
public java.lang.String hmset(byte[] key,
java.util.Map<byte[],byte[]> hash)
- Specified by:
hmset
in interface BinaryJedisCommands
hmget
public java.util.List<byte[]> hmget(byte[] key,
byte[]... fields)
- Specified by:
hmget
in interface BinaryJedisCommands
hincrBy
public java.lang.Long hincrBy(byte[] key,
byte[] field,
long value)
- Specified by:
hincrBy
in interface BinaryJedisCommands
hexists
public java.lang.Boolean hexists(byte[] key,
byte[] field)
- Specified by:
hexists
in interface BinaryJedisCommands
hdel
public java.lang.Long hdel(byte[] key,
byte[] field)
- Specified by:
hdel
in interface BinaryJedisCommands
hlen
public java.lang.Long hlen(byte[] key)
- Specified by:
hlen
in interface BinaryJedisCommands
hkeys
public java.util.Set<byte[]> hkeys(byte[] key)
- Specified by:
hkeys
in interface BinaryJedisCommands
hvals
public java.util.Collection<byte[]> hvals(byte[] key)
- Specified by:
hvals
in interface BinaryJedisCommands
hgetAll
public java.util.Map<byte[],byte[]> hgetAll(byte[] key)
- Specified by:
hgetAll
in interface BinaryJedisCommands
rpush
public java.lang.Long rpush(byte[] key,
byte[] string)
- Specified by:
rpush
in interface BinaryJedisCommands
lpush
public java.lang.Long lpush(byte[] key,
byte[] string)
- Specified by:
lpush
in interface BinaryJedisCommands
llen
public java.lang.Long llen(byte[] key)
- Specified by:
llen
in interface BinaryJedisCommands
lrange
public java.util.List<byte[]> lrange(byte[] key,
int start,
int end)
- Specified by:
lrange
in interface BinaryJedisCommands
ltrim
public java.lang.String ltrim(byte[] key,
int start,
int end)
- Specified by:
ltrim
in interface BinaryJedisCommands
lindex
public byte[] lindex(byte[] key,
int index)
- Specified by:
lindex
in interface BinaryJedisCommands
lset
public java.lang.String lset(byte[] key,
int index,
byte[] value)
- Specified by:
lset
in interface BinaryJedisCommands
lrem
public java.lang.Long lrem(byte[] key,
int count,
byte[] value)
- Specified by:
lrem
in interface BinaryJedisCommands
lpop
public byte[] lpop(byte[] key)
- Specified by:
lpop
in interface BinaryJedisCommands
rpop
public byte[] rpop(byte[] key)
- Specified by:
rpop
in interface BinaryJedisCommands
sadd
public java.lang.Long sadd(byte[] key,
byte[] member)
- Specified by:
sadd
in interface BinaryJedisCommands
smembers
public java.util.Set<byte[]> smembers(byte[] key)
- Specified by:
smembers
in interface BinaryJedisCommands
srem
public java.lang.Long srem(byte[] key,
byte[] member)
- Specified by:
srem
in interface BinaryJedisCommands
spop
public byte[] spop(byte[] key)
- Specified by:
spop
in interface BinaryJedisCommands
scard
public java.lang.Long scard(byte[] key)
- Specified by:
scard
in interface BinaryJedisCommands
sismember
public java.lang.Boolean sismember(byte[] key,
byte[] member)
- Specified by:
sismember
in interface BinaryJedisCommands
srandmember
public byte[] srandmember(byte[] key)
- Specified by:
srandmember
in interface BinaryJedisCommands
zadd
public java.lang.Long zadd(byte[] key,
double score,
byte[] member)
- Specified by:
zadd
in interface BinaryJedisCommands
zrange
public java.util.Set<byte[]> zrange(byte[] key,
int start,
int end)
- Specified by:
zrange
in interface BinaryJedisCommands
zrem
public java.lang.Long zrem(byte[] key,
byte[] member)
- Specified by:
zrem
in interface BinaryJedisCommands
zincrby
public java.lang.Double zincrby(byte[] key,
double score,
byte[] member)
- Specified by:
zincrby
in interface BinaryJedisCommands
zrank
public java.lang.Long zrank(byte[] key,
byte[] member)
- Specified by:
zrank
in interface BinaryJedisCommands
zrevrank
public java.lang.Long zrevrank(byte[] key,
byte[] member)
- Specified by:
zrevrank
in interface BinaryJedisCommands
zrevrange
public java.util.Set<byte[]> zrevrange(byte[] key,
int start,
int end)
- Specified by:
zrevrange
in interface BinaryJedisCommands
zrangeWithScores
public java.util.Set<Tuple> zrangeWithScores(byte[] key,
int start,
int end)
- Specified by:
zrangeWithScores
in interface BinaryJedisCommands
zrevrangeWithScores
public java.util.Set<Tuple> zrevrangeWithScores(byte[] key,
int start,
int end)
- Specified by:
zrevrangeWithScores
in interface BinaryJedisCommands
zcard
public java.lang.Long zcard(byte[] key)
- Specified by:
zcard
in interface BinaryJedisCommands
zscore
public java.lang.Double zscore(byte[] key,
byte[] member)
- Specified by:
zscore
in interface BinaryJedisCommands
sort
public java.util.List<byte[]> sort(byte[] key)
- Specified by:
sort
in interface BinaryJedisCommands
sort
public java.util.List<byte[]> sort(byte[] key,
SortingParams sortingParameters)
- Specified by:
sort
in interface BinaryJedisCommands
zcount
public java.lang.Long zcount(byte[] key,
double min,
double max)
- Specified by:
zcount
in interface BinaryJedisCommands
zrangeByScore
public java.util.Set<byte[]> zrangeByScore(byte[] key,
double min,
double max)
- Specified by:
zrangeByScore
in interface BinaryJedisCommands
zrangeByScore
public java.util.Set<byte[]> zrangeByScore(byte[] key,
double min,
double max,
int offset,
int count)
- Specified by:
zrangeByScore
in interface BinaryJedisCommands
zrangeByScoreWithScores
public java.util.Set<Tuple> zrangeByScoreWithScores(byte[] key,
double min,
double max)
- Specified by:
zrangeByScoreWithScores
in interface BinaryJedisCommands
zrangeByScoreWithScores
public java.util.Set<Tuple> zrangeByScoreWithScores(byte[] key,
double min,
double max,
int offset,
int count)
- Specified by:
zrangeByScoreWithScores
in interface BinaryJedisCommands
zrevrangeByScore
public java.util.Set<byte[]> zrevrangeByScore(byte[] key,
double max,
double min)
- Specified by:
zrevrangeByScore
in interface BinaryJedisCommands
zrevrangeByScore
public java.util.Set<byte[]> zrevrangeByScore(byte[] key,
double max,
double min,
int offset,
int count)
- Specified by:
zrevrangeByScore
in interface BinaryJedisCommands
zrevrangeByScoreWithScores
public java.util.Set<Tuple> zrevrangeByScoreWithScores(byte[] key,
double max,
double min)
- Specified by:
zrevrangeByScoreWithScores
in interface BinaryJedisCommands
zrevrangeByScoreWithScores
public java.util.Set<Tuple> zrevrangeByScoreWithScores(byte[] key,
double max,
double min,
int offset,
int count)
- Specified by:
zrevrangeByScoreWithScores
in interface BinaryJedisCommands
zremrangeByRank
public java.lang.Long zremrangeByRank(byte[] key,
int start,
int end)
- Specified by:
zremrangeByRank
in interface BinaryJedisCommands
zremrangeByScore
public java.lang.Long zremrangeByScore(byte[] key,
double start,
double end)
- Specified by:
zremrangeByScore
in interface BinaryJedisCommands
linsert
public java.lang.Long linsert(byte[] key,
BinaryClient.LIST_POSITION where,
byte[] pivot,
byte[] value)
- Specified by:
linsert
in interface BinaryJedisCommands
pipelined
public java.util.List<java.lang.Object> pipelined(ShardedJedisPipeline shardedJedisPipeline)