public abstract class Converters extends Object
Constructor and Description |
---|
Converters() |
Modifier and Type | Method and Description |
---|---|
static Converter<Long,Boolean> |
longToBoolean() |
static Converter<String,DataType> |
stringToDataType() |
static Converter<String,Properties> |
stringToProps() |
static byte[] |
toBit(Boolean source) |
static Boolean |
toBoolean(Long source) |
protected static RedisClusterNode |
toClusterNode(String clusterNodesLine)
Converts the result of a single line of
CLUSTER NODES into a RedisClusterNode . |
static DataType |
toDataType(String source) |
static List<Object> |
toObjects(Set<RedisZSetCommands.Tuple> tuples) |
static Properties |
toProperties(Map<?,?> source) |
static Properties |
toProperties(String source) |
static Set<RedisClusterNode> |
toSetOfRedisClusterNodes(Collection<String> lines)
Converts lines from the result of
CLUSTER NODES into RedisClusterNode s. |
static Set<RedisClusterNode> |
toSetOfRedisClusterNodes(String clusterNodes)
Converts the result of
CLUSTER NODES into RedisClusterNode s. |
static Long |
toTimeMillis(String seconds,
String microseconds)
Returns the timestamp constructed from the given
seconds and microseconds . |
public static Converter<String,Properties> stringToProps()
public static Properties toProperties(String source)
public static Properties toProperties(Map<?,?> source)
public static byte[] toBit(Boolean source)
protected static RedisClusterNode toClusterNode(String clusterNodesLine)
CLUSTER NODES
into a RedisClusterNode
.clusterNodesLine
- public static Set<RedisClusterNode> toSetOfRedisClusterNodes(Collection<String> lines)
CLUSTER NODES
into RedisClusterNode
s.clusterNodes
- public static Set<RedisClusterNode> toSetOfRedisClusterNodes(String clusterNodes)
CLUSTER NODES
into RedisClusterNode
s.clusterNodes
- public static List<Object> toObjects(Set<RedisZSetCommands.Tuple> tuples)
Copyright © 2011-2015–2017 Pivotal Software, Inc.. All rights reserved.