public static enum MemcacheProtocol.Datatype extends Enum<MemcacheProtocol.Datatype>
| Enum Constant and Description |
|---|
JSON
The JSON datatype.
|
SNAPPY
Snappy datatype used to signal compression.
|
XATTR
Extended attributes (XATTR)
|
| Modifier and Type | Method and Description |
|---|---|
static boolean |
contains(int bitfield,
MemcacheProtocol.Datatype type) |
byte |
datatype()
Returns the datatype byte for the given enum.
|
static Set<MemcacheProtocol.Datatype> |
decode(int bitfield) |
static int |
encode(Set<MemcacheProtocol.Datatype> type) |
static boolean |
isSnappy(int bitfield) |
static MemcacheProtocol.Datatype |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static MemcacheProtocol.Datatype[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final MemcacheProtocol.Datatype JSON
public static final MemcacheProtocol.Datatype SNAPPY
public static final MemcacheProtocol.Datatype XATTR
public static MemcacheProtocol.Datatype[] values()
for (MemcacheProtocol.Datatype c : MemcacheProtocol.Datatype.values()) System.out.println(c);
public static MemcacheProtocol.Datatype 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 byte datatype()
public static Set<MemcacheProtocol.Datatype> decode(int bitfield)
public static int encode(Set<MemcacheProtocol.Datatype> type)
public static boolean isSnappy(int bitfield)
public static boolean contains(int bitfield,
MemcacheProtocol.Datatype type)
Copyright © 2024 Couchbase, Inc.. All rights reserved.