Class RedisCommandsAdapterJedis
java.lang.Object
org.apache.storm.redis.common.adapter.RedisCommandsAdapterJedis
- All Implemented Interfaces:
Closeable,AutoCloseable,RedisCommands
Adapter class to make Jedis instance play with BinaryRedisCommands interface.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()del(byte[] key) exists(byte[] key) booleanhdel(byte[] key, byte[]... fields) byte[]hget(byte[] key, byte[] field) Map<byte[],byte[]> hgetAll(byte[] key) redis.clients.jedis.resps.ScanResult<Map.Entry<byte[],byte[]>> hscan(byte[] key, byte[] cursor, redis.clients.jedis.params.ScanParams params) rename(byte[] oldkey, byte[] newkey)
-
Constructor Details
-
RedisCommandsAdapterJedis
public RedisCommandsAdapterJedis(redis.clients.jedis.Jedis resource)
-
-
Method Details
-
hget
public byte[] hget(byte[] key, byte[] field) - Specified by:
hgetin interfaceRedisCommands
-
exists
- Specified by:
existsin interfaceRedisCommands
-
exists
- Specified by:
existsin interfaceRedisCommands
-
hmset
- Specified by:
hmsetin interfaceRedisCommands
-
hmset
- Specified by:
hmsetin interfaceRedisCommands
-
hgetAll
- Specified by:
hgetAllin interfaceRedisCommands
-
hgetAll
- Specified by:
hgetAllin interfaceRedisCommands
-
hdel
- Specified by:
hdelin interfaceRedisCommands
-
del
- Specified by:
delin interfaceRedisCommands
-
del
- Specified by:
delin interfaceRedisCommands
-
rename
- Specified by:
renamein interfaceRedisCommands
-
rename
- Specified by:
renamein interfaceRedisCommands
-
hscan
public redis.clients.jedis.resps.ScanResult<Map.Entry<byte[],byte[]>> hscan(byte[] key, byte[] cursor, redis.clients.jedis.params.ScanParams params) - Specified by:
hscanin interfaceRedisCommands
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Throws:
IOException
-