枚举 RedisDataType
- java.lang.Object
-
- java.lang.Enum<RedisDataType>
-
- org.apache.flink.streaming.connectors.redis.mapper.RedisDataType
-
- 所有已实现的接口:
Serializable,Comparable<RedisDataType>
public enum RedisDataType extends Enum<RedisDataType>
All available data type for Redis.
-
-
枚举常量概要
枚举常量 枚举常量 说明 HASHRedis Hashes are maps between string fields and string values.HYPER_LOG_LOGHyperLogLog is a probabilistic data structure used in order to count unique things.LISTRedis Lists are simply lists of strings, sorted by insertion order.PUBSUBRedis implementation of publish and subscribe paradigm.SETRedis Sets are an unordered collection of Strings.SORTED_SETRedis Sorted Sets are, similarly to Redis Sets, non repeating collections of Strings.STRINGStrings are the most basic kind of Redis value.
-
-
-
枚举常量详细资料
-
STRING
public static final RedisDataType STRING
Strings are the most basic kind of Redis value. Redis Strings are binary safe, this means that a Redis string can contain any kind of data, for instance a JPEG image or a serialized Ruby object. A String value can be at max 512 Megabytes in length.
-
HASH
public static final RedisDataType HASH
Redis Hashes are maps between string fields and string values.
-
LIST
public static final RedisDataType LIST
Redis Lists are simply lists of strings, sorted by insertion order.
-
SET
public static final RedisDataType SET
Redis Sets are an unordered collection of Strings.
-
SORTED_SET
public static final RedisDataType SORTED_SET
Redis Sorted Sets are, similarly to Redis Sets, non repeating collections of Strings. The difference is that every member of a Sorted Set is associated with score, that is used in order to take the sorted set ordered, from the smallest to the greatest score. While members are unique, scores may be repeated.
-
HYPER_LOG_LOG
public static final RedisDataType HYPER_LOG_LOG
HyperLogLog is a probabilistic data structure used in order to count unique things.
-
PUBSUB
public static final RedisDataType PUBSUB
Redis implementation of publish and subscribe paradigm. Published messages are characterized into channels, without knowledge of what (if any) subscribers there may be. Subscribers express interest in one or more channels, and only receive messages that are of interest, without knowledge of what (if any) publishers there are.
-
-
方法详细资料
-
values
public static RedisDataType[] values()
按照声明该枚举类型的常量的顺序, 返回 包含这些常量的数组。该方法可用于迭代 常量, 如下所示:for (RedisDataType c : RedisDataType.values()) System.out.println(c);
- 返回:
- 按照声明该枚举类型的常量的顺序返回的包含这些常量的数组
-
valueOf
public static RedisDataType valueOf(String name)
返回带有指定名称的该类型的枚举常量。 字符串必须与用于声明该类型的枚举常量的 标识符完全匹配。(不允许有多余 的空格字符。)- 参数:
name- 要返回的枚举常量的名称。- 返回:
- 返回带有指定名称的枚举常量
- 抛出:
IllegalArgumentException- 如果该枚举类型没有带有指定名称的常量NullPointerException- 如果参数为空值
-
-