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.Loggerlogger
-
Constructor Summary
Constructors Constructor Description AbstractMysqlFieldReader()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract ObjectreadDateField(ResultSet rs, int columnIndex, Column column, Table table)ObjectreadField(ResultSet rs, int columnIndex, Column column, Table table)read field from ResultSet according to different protocolsprotected abstract ObjectreadTimeField(ResultSet rs, int columnIndex)protected abstract ObjectreadTimestampField(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:MysqlFieldReaderread field from ResultSet according to different protocols- Specified by:
readFieldin 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
-
-