Package io.debezium.connector.mysql
Class AbstractMysqlFieldReader
- java.lang.Object
-
- io.debezium.connector.mysql.AbstractMysqlFieldReader
-
- All Implemented Interfaces:
MysqlFieldReader
- Direct Known Subclasses:
MysqlBinaryProtocolFieldReader
,MysqlTextProtocolFieldReader
public abstract class AbstractMysqlFieldReader extends Object implements MysqlFieldReader
Abstract class for decode MySQL return value according to different protocols.- Author:
- yangjie
-
-
Field Summary
Fields Modifier and Type Field Description protected org.slf4j.Logger
logger
-
Constructor Summary
Constructors Constructor Description AbstractMysqlFieldReader()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract Object
readDateField(ResultSet rs, int columnIndex, Column column, Table table)
Object
readField(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)
-
-
-
Method Detail
-
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
protected abstract Object readTimeField(ResultSet rs, int columnIndex) throws SQLException
- 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
-
-