Package io.debezium.connector.mysql
Class AbstractMySqlFieldReader
java.lang.Object
io.debezium.connector.mysql.AbstractMySqlFieldReader
- All Implemented Interfaces:
MySqlFieldReader
- Direct Known Subclasses:
MySqlBinaryProtocolFieldReader
,MySqlTextProtocolFieldReader
Abstract class for decode MySQL return value according to different protocols.
- Author:
- yangjie
-
Field Summary
Modifier and TypeFieldDescriptionprivate final MySqlConnectorConfig
protected final org.slf4j.Logger
-
Constructor Summary
ModifierConstructorDescriptionprotected
AbstractMySqlFieldReader
(MySqlConnectorConfig connectorConfig) -
Method Summary
Modifier and TypeMethodDescriptionprotected void
logInvalidValue
(ResultSet resultSet, int columnIndex, Object value) protected abstract Object
readDateField
(ResultSet rs, int columnIndex, Column column, Table table) read field from ResultSet according to different protocolsprotected abstract Object
readTimeField
(ResultSet rs, int columnIndex) protected abstract Object
readTimestampField
(ResultSet rs, int columnIndex, Column column, Table table)
-
Field Details
-
logger
protected final org.slf4j.Logger logger -
TEXT_DATATYPES
-
connectorConfig
-
-
Constructor Details
-
AbstractMySqlFieldReader
-
-
Method Details
-
readField
public Object readField(ResultSet rs, int columnIndex, Column column, Table table) throws SQLException Description copied from interface:MySqlFieldReader
read field from ResultSet according to different protocols- Specified by:
readField
in interfaceMySqlFieldReader
- Throws:
SQLException
-
readTimeField
- Throws:
SQLException
-
readDateField
protected abstract Object readDateField(ResultSet rs, int columnIndex, Column column, Table table) throws SQLException - Throws:
SQLException
-
readTimestampField
protected abstract Object readTimestampField(ResultSet rs, int columnIndex, Column column, Table table) throws SQLException - Throws:
SQLException
-
logInvalidValue
protected void logInvalidValue(ResultSet resultSet, int columnIndex, Object value) throws SQLException - Throws:
SQLException
-