public enum ValueType extends Enum<ValueType>
These values are defined in the MySQL codebase in the json_binary.h file, and are:
type ::=
0x00 | // small JSON object
0x01 | // large JSON object
0x02 | // small JSON array
0x03 | // large JSON array
0x04 | // literal (true/false/null)
0x05 | // int16
0x06 | // uint16
0x07 | // int32
0x08 | // uint32
0x09 | // int64
0x0a | // uint64
0x0b | // double
0x0c | // utf8mb4 string
0x0f // custom data (any MySQL data type)
| Enum Constant and Description |
|---|
CUSTOM |
DOUBLE |
INT16 |
INT32 |
INT64 |
LARGE_ARRAY |
LARGE_DOCUMENT |
LITERAL |
SMALL_ARRAY |
SMALL_DOCUMENT |
STRING |
UINT16 |
UINT32 |
UINT64 |
| Modifier and Type | Method and Description |
|---|---|
static ValueType |
byCode(int code) |
int |
getCode() |
static ValueType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ValueType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ValueType SMALL_DOCUMENT
public static final ValueType LARGE_DOCUMENT
public static final ValueType SMALL_ARRAY
public static final ValueType LARGE_ARRAY
public static final ValueType LITERAL
public static final ValueType INT16
public static final ValueType UINT16
public static final ValueType INT32
public static final ValueType UINT32
public static final ValueType INT64
public static final ValueType UINT64
public static final ValueType DOUBLE
public static final ValueType STRING
public static final ValueType CUSTOM
public static ValueType[] values()
for (ValueType c : ValueType.values()) System.out.println(c);
public static ValueType 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 int getCode()
public static ValueType byCode(int code)
Copyright © 2019. All rights reserved.