com.mysql.cj.protocol.ValueDecoder for the MySQL text protocol. All values will be received as LengthEncodedString values.
Refer to MySQL documentation for format of values as strings.
Numeric values are returned as ASCII (encoding=63/binary).
| Modifier and Type | Field and Description |
|---|---|
| public static final int | DATE_BUF_LEN
Buffer length of MySQL date string: 'YYYY-MM-DD'. |
| public static final Pattern | |
| public static final int | MAX_SIGNED_LONG_LEN
Max string length of a signed long = 9223372036854775807 (19+1 for minus sign) |
| public static final Pattern | |
| public static final int | TIME_STR_LEN_MAX_NO_FRAC
Max string length of MySQL time string (with microseconds): '-HHH:MM:SS'. |
| public static final int | TIME_STR_LEN_MAX_WITH_MICROS
Max string length of MySQL time string (with microseconds): '-HHH:MM:SS.mmmmmm'. |
| public static final int | TIME_STR_LEN_MIN
Min string length of MySQL time string: 'HH:MM:SS'. |
| public static final int | TIMESTAMP_STR_LEN_NO_FRAC
String length of MySQL timestamp string (no microseconds): 'YYYY-MM-DD HH:MM:SS'. |
| public static final int | TIMESTAMP_STR_LEN_WITH_MICROS
Max string length of MySQL timestamp (with microsecs): 'YYYY-MM-DD HH:MM:SS.mmmmmm'. |
| public static final int | TIMESTAMP_STR_LEN_WITH_NANOS
String length of String timestamp with nanos. |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public <T> T | decodeBit(byte[] bytes, int offset, int length, ValueFactory<T> vf)
Implements com.
|
| public <T> T | decodeByteArray(byte[] bytes, int offset, int length, Field f, ValueFactory<T> vf)
Implements com.
|
| public <T> T | decodeDate(byte[] bytes, int offset, int length, ValueFactory<T> vf)
Implements com.
|
| public <T> T | decodeDatetime(byte[] bytes, int offset, int length, int scale, ValueFactory<T> vf)
Implements com.
|
| public <T> T | decodeDecimal(byte[] bytes, int offset, int length, ValueFactory<T> vf)
Implements com.
|
| public <T> T | decodeDouble(byte[] bytes, int offset, int length, ValueFactory<T> vf)
Implements com.
|
| public <T> T | decodeFloat(byte[] bytes, int offset, int length, ValueFactory<T> vf)
Implements com.
|
| public <T> T | decodeInt1(byte[] bytes, int offset, int length, ValueFactory<T> vf)
Implements com.
|
| public <T> T | decodeInt2(byte[] bytes, int offset, int length, ValueFactory<T> vf)
Implements com.
|
| public <T> T | decodeInt4(byte[] bytes, int offset, int length, ValueFactory<T> vf)
Implements com.
|
| public <T> T | decodeInt8(byte[] bytes, int offset, int length, ValueFactory<T> vf)
Implements com.
|
| public <T> T | decodeSet(byte[] bytes, int offset, int length, Field f, ValueFactory<T> vf)
Implements com.
|
| public <T> T | decodeTime(byte[] bytes, int offset, int length, int scale, ValueFactory<T> vf)
Implements com.
|
| public <T> T | decodeTimestamp(byte[] bytes, int offset, int length, int scale, ValueFactory<T> vf)
Implements com.
|
| public <T> T | decodeUInt1(byte[] bytes, int offset, int length, ValueFactory<T> vf)
Implements com.
|
| public <T> T | decodeUInt2(byte[] bytes, int offset, int length, ValueFactory<T> vf)
Implements com.
|
| public <T> T | decodeUInt4(byte[] bytes, int offset, int length, ValueFactory<T> vf)
Implements com.
|
| public <T> T | decodeUInt8(byte[] bytes, int offset, int length, ValueFactory<T> vf)
Implements com.
|
| public <T> T | decodeYear(byte[] bytes, int offset, int length, ValueFactory<T> vf)
Implements com.
|
| public static BigInteger | |
| public static InternalDate | |
| public static Double | |
| public static int | |
| public static long | |
| public static InternalTime | |
| public static InternalTimestamp | |
| public static boolean | |
| public static boolean | |
| public static boolean |
| DATE_BUF_LEN | back to summary |
|---|---|
| public static final int DATE_BUF_LEN Buffer length of MySQL date string: 'YYYY-MM-DD'. | |
| DATETIME_PTRN | back to summary |
|---|---|
| public static final Pattern DATETIME_PTRN | |
| MAX_SIGNED_LONG_LEN | back to summary |
|---|---|
| public static final int MAX_SIGNED_LONG_LEN Max string length of a signed long = 9223372036854775807 (19+1 for minus sign) | |
| TIME_PTRN | back to summary |
|---|---|
| public static final Pattern TIME_PTRN | |
| TIME_STR_LEN_MAX_NO_FRAC | back to summary |
|---|---|
| public static final int TIME_STR_LEN_MAX_NO_FRAC Max string length of MySQL time string (with microseconds): '-HHH:MM:SS'. | |
| TIME_STR_LEN_MAX_WITH_MICROS | back to summary |
|---|---|
| public static final int TIME_STR_LEN_MAX_WITH_MICROS Max string length of MySQL time string (with microseconds): '-HHH:MM:SS.mmmmmm'. | |
| TIME_STR_LEN_MIN | back to summary |
|---|---|
| public static final int TIME_STR_LEN_MIN Min string length of MySQL time string: 'HH:MM:SS'. | |
| TIMESTAMP_STR_LEN_NO_FRAC | back to summary |
|---|---|
| public static final int TIMESTAMP_STR_LEN_NO_FRAC String length of MySQL timestamp string (no microseconds): 'YYYY-MM-DD HH:MM:SS'. | |
| TIMESTAMP_STR_LEN_WITH_MICROS | back to summary |
|---|---|
| public static final int TIMESTAMP_STR_LEN_WITH_MICROS Max string length of MySQL timestamp (with microsecs): 'YYYY-MM-DD HH:MM:SS.mmmmmm'. | |
| TIMESTAMP_STR_LEN_WITH_NANOS | back to summary |
|---|---|
| public static final int TIMESTAMP_STR_LEN_WITH_NANOS String length of String timestamp with nanos. This does not come from MySQL server but we support it via string conversion. | |
| MysqlTextValueDecoder | back to summary |
|---|---|
| public MysqlTextValueDecoder() | |
| decodeBit | back to summary |
|---|---|
| public <T> T decodeBit(byte[] bytes, int offset, int length, ValueFactory<T> vf) Implements com.
| |
| decodeByteArray | back to summary |
|---|---|
| public <T> T decodeByteArray(byte[] bytes, int offset, int length, Field f, ValueFactory<T> vf) Implements com.
| |
| decodeDate | back to summary |
|---|---|
| public <T> T decodeDate(byte[] bytes, int offset, int length, ValueFactory<T> vf) Implements com.
| |
| decodeDatetime | back to summary |
|---|---|
| public <T> T decodeDatetime(byte[] bytes, int offset, int length, int scale, ValueFactory<T> vf) Implements com.
| |
| decodeDecimal | back to summary |
|---|---|
| public <T> T decodeDecimal(byte[] bytes, int offset, int length, ValueFactory<T> vf) Implements com.
| |
| decodeDouble | back to summary |
|---|---|
| public <T> T decodeDouble(byte[] bytes, int offset, int length, ValueFactory<T> vf) Implements com.
| |
| decodeFloat | back to summary |
|---|---|
| public <T> T decodeFloat(byte[] bytes, int offset, int length, ValueFactory<T> vf) Implements com.
| |
| decodeInt1 | back to summary |
|---|---|
| public <T> T decodeInt1(byte[] bytes, int offset, int length, ValueFactory<T> vf) Implements com.
| |
| decodeInt2 | back to summary |
|---|---|
| public <T> T decodeInt2(byte[] bytes, int offset, int length, ValueFactory<T> vf) Implements com.
| |
| decodeInt4 | back to summary |
|---|---|
| public <T> T decodeInt4(byte[] bytes, int offset, int length, ValueFactory<T> vf) Implements com.
| |
| decodeInt8 | back to summary |
|---|---|
| public <T> T decodeInt8(byte[] bytes, int offset, int length, ValueFactory<T> vf) Implements com.
| |
| decodeSet | back to summary |
|---|---|
| public <T> T decodeSet(byte[] bytes, int offset, int length, Field f, ValueFactory<T> vf) Implements com.
| |
| decodeTime | back to summary |
|---|---|
| public <T> T decodeTime(byte[] bytes, int offset, int length, int scale, ValueFactory<T> vf) Implements com.
| |
| decodeTimestamp | back to summary |
|---|---|
| public <T> T decodeTimestamp(byte[] bytes, int offset, int length, int scale, ValueFactory<T> vf) Implements com.
| |
| decodeUInt1 | back to summary |
|---|---|
| public <T> T decodeUInt1(byte[] bytes, int offset, int length, ValueFactory<T> vf) Implements com.
| |
| decodeUInt2 | back to summary |
|---|---|
| public <T> T decodeUInt2(byte[] bytes, int offset, int length, ValueFactory<T> vf) Implements com.
| |
| decodeUInt4 | back to summary |
|---|---|
| public <T> T decodeUInt4(byte[] bytes, int offset, int length, ValueFactory<T> vf) Implements com.
| |
| decodeUInt8 | back to summary |
|---|---|
| public <T> T decodeUInt8(byte[] bytes, int offset, int length, ValueFactory<T> vf) Implements com.
| |
| decodeYear | back to summary |
|---|---|
| public <T> T decodeYear(byte[] bytes, int offset, int length, ValueFactory<T> vf) Implements com.
| |
| getBigInteger | back to summary |
|---|---|
| public static BigInteger getBigInteger(byte[] buf, int offset, int length) throws NumberFormatException | |
| getDate | back to summary |
|---|---|
| public static InternalDate getDate(byte[] bytes, int offset, int length) | |
| getDouble | back to summary |
|---|---|
| public static Double getDouble(byte[] bytes, int offset, int length) | |
| getInt | back to summary |
|---|---|
| public static int getInt(byte[] buf, int offset, int endpos) throws NumberFormatException | |
| getLong | back to summary |
|---|---|
| public static long getLong(byte[] buf, int offset, int endpos) throws NumberFormatException | |
| getTime | back to summary |
|---|---|
| public static InternalTime getTime(byte[] bytes, int offset, int length, int scale) | |
| getTimestamp | back to summary |
|---|---|
| public static InternalTimestamp getTimestamp(byte[] bytes, int offset, int length, int scale) | |
| isDate | back to summary |
|---|---|
| public static boolean isDate(String s) | |
| isTime | back to summary |
|---|---|
| public static boolean isTime(String s) | |
| isTimestamp | back to summary |
|---|---|
| public static boolean isTimestamp(String s) | |