Enum ObjectEncoding

java.lang.Object
java.lang.Enum<ObjectEncoding>
org.redisson.api.ObjectEncoding
All Implemented Interfaces:
Serializable, Comparable<ObjectEncoding>

public enum ObjectEncoding extends Enum<ObjectEncoding>
enum type from https://redis.io/docs/latest/commands/object-encoding/
Author:
seakider
  • Enum Constant Details

    • RAW

      public static final ObjectEncoding RAW
      Normal string encoding.
    • INT

      public static final ObjectEncoding INT
      Strings representing integers in a 64-bit signed interval.
    • EMBSTR

      public static final ObjectEncoding EMBSTR
      Strings with lengths up to the hardcoded limit of OBJ_ENCODING_EMBSTR_SIZE_LIMIT or 44 bytes.
    • LINKEDLIST

      public static final ObjectEncoding LINKEDLIST
      An old list encoding. No longer used.
    • ZIPLIST

      public static final ObjectEncoding ZIPLIST
      A space-efficient encoding used for small lists. Redis invalid input: '<'= 6.2
    • LISTPACK

      public static final ObjectEncoding LISTPACK
      A space-efficient encoding used for small lists. Redis >= 7.0
    • QUICKLIST

      public static final ObjectEncoding QUICKLIST
      Encoded as linkedlist of ziplists or listpacks.
    • HASHTABLE

      public static final ObjectEncoding HASHTABLE
      Normal set encoding.
    • INTSET

      public static final ObjectEncoding INTSET
      Small sets composed solely of integers encoding.
    • ZIPMAP

      public static final ObjectEncoding ZIPMAP
      An old hash encoding. No longer used
    • SKIPLIST

      public static final ObjectEncoding SKIPLIST
      Normal sorted set encoding
    • STREAM

      public static final ObjectEncoding STREAM
      Encoded as a radix tree of listpacks
    • NULL

      public static final ObjectEncoding NULL
      Key is not exist.
    • UNKNOWN

      public static final ObjectEncoding UNKNOWN
      This means redis support new type and this Enum not defined.
  • Method Details

    • values

      public static ObjectEncoding[] 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 ObjectEncoding 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
    • getType

      public String getType()
    • valueOfEncoding

      public static ObjectEncoding valueOfEncoding(Object object)