org.springframework.data.redis.connection.srp
Class SrpConverters
java.lang.Object
org.springframework.data.redis.connection.convert.Converters
org.springframework.data.redis.connection.srp.SrpConverters
public abstract class SrpConverters
- extends Converters
SRP type converters
Method Summary |
static Converter<byte[],Double> |
bytesToDouble()
|
static Converter<byte[],Properties> |
bytesToProperties()
|
static Converter<byte[],String> |
bytesToString()
|
static Converter<Long,Boolean> |
longToBooleanConverter()
|
static Converter<redis.reply.Reply[],List<Boolean>> |
repliesToBooleanList()
|
static Converter<redis.reply.Reply[],List<byte[]>> |
repliesToBytesList()
|
static Converter<redis.reply.Reply[],Map<byte[],byte[]>> |
repliesToBytesMap()
|
static Converter<redis.reply.Reply[],Set<byte[]>> |
repliesToBytesSet()
|
static Converter<redis.reply.Reply[],List<String>> |
repliesToStringList()
|
static Converter<redis.reply.Reply[],Long> |
repliesToTimeAsLong()
|
static Converter<redis.reply.Reply[],Set<RedisZSetCommands.Tuple>> |
repliesToTupleSet()
|
static Converter<byte[],List<RedisClientInfo>> |
replyToListOfRedisClientInfo()
|
static Converter<redis.reply.Reply,String> |
replyToString()
|
static Boolean |
toBoolean(redis.reply.IntegerReply reply)
Convert an IntegerReply to a Boolean by inspecting IntegerReply.data() . |
static List<Boolean> |
toBooleanList(redis.reply.Reply[] source)
|
static byte[][] |
toByteArrays(Map<byte[],byte[]> source)
|
static byte[] |
toBytes(RedisListCommands.Position source)
|
static byte[] |
toBytes(RedisStringCommands.BitOperation op)
|
static List<byte[]> |
toBytesList(redis.reply.Reply[] source)
|
static Map<byte[],byte[]> |
toBytesMap(redis.reply.Reply[] source)
|
static Set<byte[]> |
toBytesSet(redis.reply.Reply[] source)
|
static DataAccessException |
toDataAccessException(Exception ex)
|
static Double |
toDouble(byte[] source)
|
static List<RedisClientInfo> |
toListOfRedisClientInformation(redis.reply.Reply reply)
|
static Properties |
toProperties(byte[] source)
|
static String |
toString(byte[] source)
|
static String |
toString(redis.reply.Reply source)
|
static List<String> |
toStringList(redis.reply.Reply[] source)
|
static List<String> |
toStringList(String source)
|
static Long |
toTimeAsLong(redis.reply.Reply[] source)
Converts given Reply s to Long . |
static Set<RedisZSetCommands.Tuple> |
toTupleSet(redis.reply.Reply[] source)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SrpConverters
public SrpConverters()
repliesToBytesList
public static Converter<redis.reply.Reply[],List<byte[]>> repliesToBytesList()
repliesToBytesSet
public static Converter<redis.reply.Reply[],Set<byte[]>> repliesToBytesSet()
bytesToProperties
public static Converter<byte[],Properties> bytesToProperties()
bytesToDouble
public static Converter<byte[],Double> bytesToDouble()
repliesToTupleSet
public static Converter<redis.reply.Reply[],Set<RedisZSetCommands.Tuple>> repliesToTupleSet()
repliesToBytesMap
public static Converter<redis.reply.Reply[],Map<byte[],byte[]>> repliesToBytesMap()
bytesToString
public static Converter<byte[],String> bytesToString()
replyToString
public static Converter<redis.reply.Reply,String> replyToString()
repliesToBooleanList
public static Converter<redis.reply.Reply[],List<Boolean>> repliesToBooleanList()
repliesToStringList
public static Converter<redis.reply.Reply[],List<String>> repliesToStringList()
repliesToTimeAsLong
public static Converter<redis.reply.Reply[],Long> repliesToTimeAsLong()
toListOfRedisClientInformation
public static List<RedisClientInfo> toListOfRedisClientInformation(redis.reply.Reply reply)
- Returns:
- Since:
- 1.3
longToBooleanConverter
public static Converter<Long,Boolean> longToBooleanConverter()
- Returns:
- Since:
- 1.3
toBytesList
public static List<byte[]> toBytesList(redis.reply.Reply[] source)
toBytesSet
public static Set<byte[]> toBytesSet(redis.reply.Reply[] source)
toProperties
public static Properties toProperties(byte[] source)
toDouble
public static Double toDouble(byte[] source)
toTupleSet
public static Set<RedisZSetCommands.Tuple> toTupleSet(redis.reply.Reply[] source)
toBytesMap
public static Map<byte[],byte[]> toBytesMap(redis.reply.Reply[] source)
toString
public static String toString(redis.reply.Reply source)
toString
public static String toString(byte[] source)
toBooleanList
public static List<Boolean> toBooleanList(redis.reply.Reply[] source)
toStringList
public static List<String> toStringList(redis.reply.Reply[] source)
toTimeAsLong
public static Long toTimeAsLong(redis.reply.Reply[] source)
- Converts given
Reply
s to Long
.
- Parameters:
source
- Array holding time values in seconds and microseconds.
- Returns:
toBytes
public static byte[] toBytes(RedisStringCommands.BitOperation op)
toDataAccessException
public static DataAccessException toDataAccessException(Exception ex)
toByteArrays
public static byte[][] toByteArrays(Map<byte[],byte[]> source)
toBytes
public static byte[] toBytes(RedisListCommands.Position source)
toStringList
public static List<String> toStringList(String source)
replyToListOfRedisClientInfo
public static Converter<byte[],List<RedisClientInfo>> replyToListOfRedisClientInfo()
- Returns:
- Since:
- 1.3
toBoolean
public static Boolean toBoolean(redis.reply.IntegerReply reply)
- Convert an
IntegerReply
to a Boolean
by inspecting IntegerReply.data()
.
- Parameters:
reply
-
- Returns:
- Since:
- 1.3