Enum RedisDataType

java.lang.Object
java.lang.Enum<RedisDataType>
org.apache.calcite.adapter.redis.RedisDataType
All Implemented Interfaces:
Serializable, Comparable<RedisDataType>, Constable

public enum RedisDataType extends Enum<RedisDataType>
All available data type for Redis.
  • Enum Constant Details

    • 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.
  • Method Details

    • values

      public static RedisDataType[] 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

      public static RedisDataType valueOf(String name)
      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 name
      NullPointerException - if the argument is null
    • fromTypeName

      public static RedisDataType fromTypeName(String typeName)
    • getTypeName

      public String getTypeName()