Package io.debezium.connector.mysql
Class MySqlTextProtocolFieldReader
java.lang.Object
io.debezium.connector.mysql.AbstractMySqlFieldReader
io.debezium.connector.mysql.MySqlTextProtocolFieldReader
- All Implemented Interfaces:
MySqlFieldReader
Decode text protocol value for MySQL.
- Author:
- yangjie
-
Field Summary
Fields inherited from class io.debezium.connector.mysql.AbstractMySqlFieldReader
logger
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected 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-zeroMethods inherited from class io.debezium.connector.mysql.AbstractMySqlFieldReader
logInvalidValue, readField
-
Field Details
-
LOGGER
private static final org.slf4j.Logger LOGGER
-
-
Constructor Details
-
MySqlTextProtocolFieldReader
-
-
Method Details
-
readTimeField
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
-