public enum DataType extends Enum<DataType> implements redis.clients.jedis.commands.ProtocolCommand
Modifier and Type | Method and Description |
---|---|
static DataType |
baseObjType(Object o)
The class for the data type to which Java object o corresponds.
|
byte[] |
getRaw() |
protected abstract List<byte[]> |
toByteArray(Object obj) |
List<byte[]> |
toByteArray(Object obj,
long[] dimensions) |
protected abstract Object |
toObject(List<byte[]> data) |
static DataType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static DataType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final DataType INT32
public static final DataType INT64
public static final DataType FLOAT
public static final DataType DOUBLE
public static DataType[] values()
for (DataType c : DataType.values()) System.out.println(c);
public static 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 static DataType baseObjType(Object o)
public byte[] getRaw()
getRaw
in interface redis.clients.jedis.args.Rawable
Copyright © 2021. All rights reserved.