public abstract class Converters extends Object
| Constructor and Description |
|---|
Converters() |
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 RedisClusterNodes.clusterNodes - public static Set<RedisClusterNode> toSetOfRedisClusterNodes(String clusterNodes)
CLUSTER NODES into RedisClusterNodes.clusterNodes - public static List<Object> toObjects(Set<RedisZSetCommands.Tuple> tuples)
public static Long toTimeMillis(String seconds, String microseconds)
seconds and microseconds.seconds - server time in secondsmicroseconds - elapsed microseconds in current secondpublic static long secondsToTimeUnit(long seconds,
TimeUnit targetUnit)
seconds to the given TimeUnit.seconds - targetUnit - must not be null.public static Converter<Long,Long> secondsToTimeUnit(TimeUnit timeUnit)
timeUnit - muist not be null.public static long millisecondsToTimeUnit(long milliseconds,
TimeUnit targetUnit)
milliseconds to the given TimeUnit.milliseconds - targetUnit - must not be null.public static Converter<Long,Long> millisecondsToTimeUnit(TimeUnit timeUnit)
timeUnit - muist not be null.public static <V> Converter<GeoResults<RedisGeoCommands.GeoLocation<byte[]>>,GeoResults<RedisGeoCommands.GeoLocation<V>>> deserializingGeoResultsConverter(RedisSerializer<V> serializer)
Converter capable of deserializing GeoResults.serializer - Copyright © 2011-2016–2016 Pivotal Software, Inc.. All rights reserved.