Package org.apache.calcite.adapter.redis
Enum RedisDataType
- All Implemented Interfaces:
Serializable
,Comparable<RedisDataType>
,Constable
All available data type for Redis.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionRedis Hashes are maps between string fields and string values.HyperLogLog is a probabilistic data structure used in order to count unique things.Redis Lists are simply lists of strings, sorted by insertion order.Redis implementation of publish and subscribe paradigm.Redis Sets are an unordered collection of Strings.Redis Sorted Sets are, similarly to Redis Sets, non repeating collections of Strings.Strings are the most basic kind of Redis value. -
Method Summary
Modifier and TypeMethodDescriptionstatic RedisDataType
fromTypeName
(String typeName) static RedisDataType
Returns the enum constant of this type with the specified name.static RedisDataType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
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
Redis Hashes are maps between string fields and string values. -
LIST
Redis Lists are simply lists of strings, sorted by insertion order. -
SET
Redis Sets are an unordered collection of Strings. -
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
HyperLogLog is a probabilistic data structure used in order to count unique things. -
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.
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
fromTypeName
-
getTypeName
-