类 MysqlTextValueDecoder

  • 所有已实现的接口:
    ValueDecoder

    public class MysqlTextValueDecoder
    extends Object
    implements ValueDecoder
    Implementation of 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).

    • 字段详细资料

      • DATE_BUF_LEN

        public static final int DATE_BUF_LEN
        Buffer length of MySQL date string: 'YYYY-MM-DD'.
        另请参阅:
        常量字段值
      • TIME_STR_LEN_MIN

        public static final int TIME_STR_LEN_MIN
        Min string length of MySQL time string: 'HH:MM:SS'.
        另请参阅:
        常量字段值
      • TIME_STR_LEN_MAX_NO_FRAC

        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

        public static final int TIME_STR_LEN_MAX_WITH_MICROS
        Max string length of MySQL time string (with microseconds): '-HHH:MM:SS.mmmmmm'.
        另请参阅:
        常量字段值
      • TIMESTAMP_STR_LEN_NO_FRAC

        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

        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

        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.
        另请参阅:
        常量字段值
      • TIME_PTRN

        public static final Pattern TIME_PTRN
      • MAX_SIGNED_LONG_LEN

        public static final int MAX_SIGNED_LONG_LEN
        Max string length of a signed long = 9223372036854775807 (19+1 for minus sign)
        另请参阅:
        常量字段值
    • 构造器详细资料

      • MysqlTextValueDecoder

        public MysqlTextValueDecoder()