Package io.debezium.connector.mysql
Class MysqlTextProtocolFieldReader
- java.lang.Object
-
- io.debezium.connector.mysql.AbstractMysqlFieldReader
-
- io.debezium.connector.mysql.MysqlTextProtocolFieldReader
-
- All Implemented Interfaces:
MysqlFieldReader
public class MysqlTextProtocolFieldReader extends AbstractMysqlFieldReader
Decode text protocol value for MySQL.- Author:
- yangjie
-
-
Field Summary
-
Fields inherited from class io.debezium.connector.mysql.AbstractMysqlFieldReader
logger
-
-
Constructor Summary
Constructors Constructor Description MysqlTextProtocolFieldReader()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected Object
readDateField(ResultSet rs, int columnIndex, Column column, Table table)
In non-string mode the date field can contain zero in any of the date part which we need to handle as all-zeroprotected Object
readTimeField(ResultSet rs, int columnIndex)
As MySQL connector/J implementation is broken for MySQL type "TIME" we have to use a binary-ish workaroundprotected Object
readTimestampField(ResultSet rs, int columnIndex, Column column, Table table)
In non-string mode the time field can contain zero in any of the date part which we need to handle as all-zero-
Methods inherited from class io.debezium.connector.mysql.AbstractMysqlFieldReader
readField
-
-
-
-
Method Detail
-
readTimeField
protected Object readTimeField(ResultSet rs, int columnIndex) throws SQLException
As MySQL connector/J implementation is broken for MySQL type "TIME" we have to use a binary-ish workaround- Specified by:
readTimeField
in classAbstractMysqlFieldReader
- Throws:
SQLException
-
readDateField
protected Object readDateField(ResultSet rs, int columnIndex, Column column, Table table) throws SQLException
In non-string mode the date field can contain zero in any of the date part which we need to handle as all-zero- Specified by:
readDateField
in classAbstractMysqlFieldReader
- Throws:
SQLException
-
readTimestampField
protected Object readTimestampField(ResultSet rs, int columnIndex, Column column, Table table) throws SQLException
In non-string mode the time field can contain zero in any of the date part which we need to handle as all-zero- Specified by:
readTimestampField
in classAbstractMysqlFieldReader
- Throws:
SQLException
-
-