Class RowDeserializers.WriteRowsDeserializer
java.lang.Object
com.github.shyiko.mysql.binlog.event.deserialization.AbstractRowsEventDataDeserializer<com.github.shyiko.mysql.binlog.event.WriteRowsEventData>
com.github.shyiko.mysql.binlog.event.deserialization.WriteRowsEventDataDeserializer
io.debezium.connector.binlog.event.RowDeserializers.WriteRowsDeserializer
- All Implemented Interfaces:
com.github.shyiko.mysql.binlog.event.deserialization.EventDataDeserializer<com.github.shyiko.mysql.binlog.event.WriteRowsEventData>
- Enclosing class:
- RowDeserializers
public static class RowDeserializers.WriteRowsDeserializer
extends com.github.shyiko.mysql.binlog.event.deserialization.WriteRowsEventDataDeserializer
A specialization of
WriteRowsEventDataDeserializer that converts DATE, TIME,
DATETIME, and TIMESTAMP values to LocalDate, LocalTime, LocalDateTime,
and OffsetDateTime objects, respectively.-
Field Summary
FieldsModifier and TypeFieldDescription -
Constructor Summary
ConstructorsConstructorDescriptionWriteRowsDeserializer(Map<Long, com.github.shyiko.mysql.binlog.event.TableMapEventData> tableMapEventByTableId, CommonConnectorConfig.EventProcessingFailureHandlingMode eventProcessingFailureHandlingMode) -
Method Summary
Modifier and TypeMethodDescriptionprotected SerializabledeserializeDate(com.github.shyiko.mysql.binlog.io.ByteArrayInputStream inputStream) protected SerializabledeserializeDatetime(com.github.shyiko.mysql.binlog.io.ByteArrayInputStream inputStream) protected SerializabledeserializeDatetimeV2(int meta, com.github.shyiko.mysql.binlog.io.ByteArrayInputStream inputStream) protected SerializabledeserializeString(int length, com.github.shyiko.mysql.binlog.io.ByteArrayInputStream inputStream) protected SerializabledeserializeTime(com.github.shyiko.mysql.binlog.io.ByteArrayInputStream inputStream) protected SerializabledeserializeTimestamp(com.github.shyiko.mysql.binlog.io.ByteArrayInputStream inputStream) protected SerializabledeserializeTimestampV2(int meta, com.github.shyiko.mysql.binlog.io.ByteArrayInputStream inputStream) protected SerializabledeserializeTimeV2(int meta, com.github.shyiko.mysql.binlog.io.ByteArrayInputStream inputStream) protected SerializabledeserializeVarString(int meta, com.github.shyiko.mysql.binlog.io.ByteArrayInputStream inputStream) protected SerializabledeserializeYear(com.github.shyiko.mysql.binlog.io.ByteArrayInputStream inputStream) Methods inherited from class com.github.shyiko.mysql.binlog.event.deserialization.WriteRowsEventDataDeserializer
deserialize, setMayContainExtraInformationMethods inherited from class com.github.shyiko.mysql.binlog.event.deserialization.AbstractRowsEventDataDeserializer
asBigDecimal, asUnixTime, deserializeBit, deserializeBlob, deserializeCell, deserializeDouble, deserializeEnum, deserializeFloat, deserializeFractionalSeconds, deserializeGeometry, deserializeInt24, deserializeJson, deserializeLong, deserializeLongLong, deserializeNewDecimal, deserializeRow, deserializeSet, deserializeShort, deserializeTiny
-
Field Details
-
eventProcessingFailureHandlingMode
-
-
Constructor Details
-
WriteRowsDeserializer
public WriteRowsDeserializer(Map<Long, com.github.shyiko.mysql.binlog.event.TableMapEventData> tableMapEventByTableId, CommonConnectorConfig.EventProcessingFailureHandlingMode eventProcessingFailureHandlingMode)
-
-
Method Details
-
deserializeString
protected Serializable deserializeString(int length, com.github.shyiko.mysql.binlog.io.ByteArrayInputStream inputStream) throws IOException - Overrides:
deserializeStringin classcom.github.shyiko.mysql.binlog.event.deserialization.AbstractRowsEventDataDeserializer<com.github.shyiko.mysql.binlog.event.WriteRowsEventData>- Throws:
IOException
-
deserializeVarString
protected Serializable deserializeVarString(int meta, com.github.shyiko.mysql.binlog.io.ByteArrayInputStream inputStream) throws IOException - Overrides:
deserializeVarStringin classcom.github.shyiko.mysql.binlog.event.deserialization.AbstractRowsEventDataDeserializer<com.github.shyiko.mysql.binlog.event.WriteRowsEventData>- Throws:
IOException
-
deserializeDate
protected Serializable deserializeDate(com.github.shyiko.mysql.binlog.io.ByteArrayInputStream inputStream) throws IOException - Overrides:
deserializeDatein classcom.github.shyiko.mysql.binlog.event.deserialization.AbstractRowsEventDataDeserializer<com.github.shyiko.mysql.binlog.event.WriteRowsEventData>- Throws:
IOException
-
deserializeDatetime
protected Serializable deserializeDatetime(com.github.shyiko.mysql.binlog.io.ByteArrayInputStream inputStream) throws IOException - Overrides:
deserializeDatetimein classcom.github.shyiko.mysql.binlog.event.deserialization.AbstractRowsEventDataDeserializer<com.github.shyiko.mysql.binlog.event.WriteRowsEventData>- Throws:
IOException
-
deserializeDatetimeV2
protected Serializable deserializeDatetimeV2(int meta, com.github.shyiko.mysql.binlog.io.ByteArrayInputStream inputStream) throws IOException - Overrides:
deserializeDatetimeV2in classcom.github.shyiko.mysql.binlog.event.deserialization.AbstractRowsEventDataDeserializer<com.github.shyiko.mysql.binlog.event.WriteRowsEventData>- Throws:
IOException
-
deserializeTimeV2
protected Serializable deserializeTimeV2(int meta, com.github.shyiko.mysql.binlog.io.ByteArrayInputStream inputStream) throws IOException - Overrides:
deserializeTimeV2in classcom.github.shyiko.mysql.binlog.event.deserialization.AbstractRowsEventDataDeserializer<com.github.shyiko.mysql.binlog.event.WriteRowsEventData>- Throws:
IOException
-
deserializeTime
protected Serializable deserializeTime(com.github.shyiko.mysql.binlog.io.ByteArrayInputStream inputStream) throws IOException - Overrides:
deserializeTimein classcom.github.shyiko.mysql.binlog.event.deserialization.AbstractRowsEventDataDeserializer<com.github.shyiko.mysql.binlog.event.WriteRowsEventData>- Throws:
IOException
-
deserializeTimestamp
protected Serializable deserializeTimestamp(com.github.shyiko.mysql.binlog.io.ByteArrayInputStream inputStream) throws IOException - Overrides:
deserializeTimestampin classcom.github.shyiko.mysql.binlog.event.deserialization.AbstractRowsEventDataDeserializer<com.github.shyiko.mysql.binlog.event.WriteRowsEventData>- Throws:
IOException
-
deserializeTimestampV2
protected Serializable deserializeTimestampV2(int meta, com.github.shyiko.mysql.binlog.io.ByteArrayInputStream inputStream) throws IOException - Overrides:
deserializeTimestampV2in classcom.github.shyiko.mysql.binlog.event.deserialization.AbstractRowsEventDataDeserializer<com.github.shyiko.mysql.binlog.event.WriteRowsEventData>- Throws:
IOException
-
deserializeYear
protected Serializable deserializeYear(com.github.shyiko.mysql.binlog.io.ByteArrayInputStream inputStream) throws IOException - Overrides:
deserializeYearin classcom.github.shyiko.mysql.binlog.event.deserialization.AbstractRowsEventDataDeserializer<com.github.shyiko.mysql.binlog.event.WriteRowsEventData>- Throws:
IOException
-