public static enum ValueEncoding.RedisValueEncoding extends Enum<ValueEncoding.RedisValueEncoding> implements ValueEncoding
ValueEncoding
implementation of encodings used in Redis.ValueEncoding.RedisValueEncoding
Enum Constant and Description |
---|
HASHTABLE
Encoding for large hashes.
|
INT
64 bit signed interval String representing an integer.
|
INTSET
Space saving representation for small sets that contain only integers.ø
|
LINKEDLIST
Encoding for large lists.
|
RAW
Normal string encoding.
|
SKIPLIST
Encoding for sorted sets of any size.
|
VACANT
No encoding present due to non existing key.
|
ZIPLIST
Space saving representation for small lists, hashes and sorted sets.
|
Modifier and Type | Method and Description |
---|---|
String |
raw() |
static ValueEncoding.RedisValueEncoding |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ValueEncoding.RedisValueEncoding[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
of
public static final ValueEncoding.RedisValueEncoding RAW
public static final ValueEncoding.RedisValueEncoding INT
public static final ValueEncoding.RedisValueEncoding ZIPLIST
public static final ValueEncoding.RedisValueEncoding LINKEDLIST
public static final ValueEncoding.RedisValueEncoding INTSET
public static final ValueEncoding.RedisValueEncoding HASHTABLE
public static final ValueEncoding.RedisValueEncoding SKIPLIST
public static final ValueEncoding.RedisValueEncoding VACANT
public static ValueEncoding.RedisValueEncoding[] values()
for (ValueEncoding.RedisValueEncoding c : ValueEncoding.RedisValueEncoding.values()) System.out.println(c);
public static ValueEncoding.RedisValueEncoding valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic String raw()
raw
in interface ValueEncoding
Copyright © 2011–2022 Pivotal Software, Inc.. All rights reserved.