Package org.redisson.api
Enum ObjectEncoding
- All Implemented Interfaces:
Serializable
,Comparable<ObjectEncoding>
enum type from https://redis.io/docs/latest/commands/object-encoding/
- Author:
- seakider
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionStrings with lengths up to the hardcoded limit of OBJ_ENCODING_EMBSTR_SIZE_LIMIT or 44 bytes.Normal set encoding.Strings representing integers in a 64-bit signed interval.Small sets composed solely of integers encoding.An old list encoding.A space-efficient encoding used for small lists.Key is not exist.Encoded as linkedlist of ziplists or listpacks.Normal string encoding.Normal sorted set encodingEncoded as a radix tree of listpacksThis means redis support new type and this Enum not defined.A space-efficient encoding used for small lists.An old hash encoding. -
Method Summary
Modifier and TypeMethodDescriptiongetType()
static ObjectEncoding
Returns the enum constant of this type with the specified name.static ObjectEncoding
valueOfEncoding
(Object object) static ObjectEncoding[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
RAW
Normal string encoding. -
INT
Strings representing integers in a 64-bit signed interval. -
EMBSTR
Strings with lengths up to the hardcoded limit of OBJ_ENCODING_EMBSTR_SIZE_LIMIT or 44 bytes. -
LINKEDLIST
An old list encoding. No longer used. -
ZIPLIST
A space-efficient encoding used for small lists. Redis invalid input: '<'= 6.2 -
LISTPACK
A space-efficient encoding used for small lists. Redis >= 7.0 -
QUICKLIST
Encoded as linkedlist of ziplists or listpacks. -
HASHTABLE
Normal set encoding. -
INTSET
Small sets composed solely of integers encoding. -
ZIPMAP
An old hash encoding. No longer used -
SKIPLIST
Normal sorted set encoding -
STREAM
Encoded as a radix tree of listpacks -
NULL
Key is not exist. -
UNKNOWN
This means redis support new type and this Enum not defined.
-
-
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
-
getType
-
valueOfEncoding
-