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.mysql.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 MySQL DATE, TIME, DATETIME, and TIMESTAMP values to LocalDate, LocalTime, LocalDateTime, and OffsetDateTime objects, respectively.
  • Constructor Summary

    Constructors
    Constructor
    Description
    WriteRowsDeserializer(Map<Long,com.github.shyiko.mysql.binlog.event.TableMapEventData> tableMapEventByTableId)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected Serializable
    deserializeDate(com.github.shyiko.mysql.binlog.io.ByteArrayInputStream inputStream)
     
    protected Serializable
    deserializeDatetime(com.github.shyiko.mysql.binlog.io.ByteArrayInputStream inputStream)
     
    protected Serializable
    deserializeDatetimeV2(int meta, com.github.shyiko.mysql.binlog.io.ByteArrayInputStream inputStream)
     
    protected Serializable
    deserializeString(int length, com.github.shyiko.mysql.binlog.io.ByteArrayInputStream inputStream)
     
    protected Serializable
    deserializeTime(com.github.shyiko.mysql.binlog.io.ByteArrayInputStream inputStream)
     
    protected Serializable
    deserializeTimestamp(com.github.shyiko.mysql.binlog.io.ByteArrayInputStream inputStream)
     
    protected Serializable
    deserializeTimestampV2(int meta, com.github.shyiko.mysql.binlog.io.ByteArrayInputStream inputStream)
     
    protected Serializable
    deserializeTimeV2(int meta, com.github.shyiko.mysql.binlog.io.ByteArrayInputStream inputStream)
     
    protected Serializable
    deserializeVarString(int meta, com.github.shyiko.mysql.binlog.io.ByteArrayInputStream inputStream)
     
    protected Serializable
    deserializeYear(com.github.shyiko.mysql.binlog.io.ByteArrayInputStream inputStream)
     

    Methods inherited from class com.github.shyiko.mysql.binlog.event.deserialization.WriteRowsEventDataDeserializer

    deserialize, setMayContainExtraInformation

    Methods 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

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • WriteRowsDeserializer

      public WriteRowsDeserializer(Map<Long,com.github.shyiko.mysql.binlog.event.TableMapEventData> tableMapEventByTableId)
  • Method Details

    • deserializeString

      protected Serializable deserializeString(int length, com.github.shyiko.mysql.binlog.io.ByteArrayInputStream inputStream) throws IOException
      Overrides:
      deserializeString in class com.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:
      deserializeVarString in class com.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:
      deserializeDate in class com.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:
      deserializeDatetime in class com.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:
      deserializeDatetimeV2 in class com.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:
      deserializeTimeV2 in class com.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:
      deserializeTime in class com.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:
      deserializeTimestamp in class com.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:
      deserializeTimestampV2 in class com.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:
      deserializeYear in class com.github.shyiko.mysql.binlog.event.deserialization.AbstractRowsEventDataDeserializer<com.github.shyiko.mysql.binlog.event.WriteRowsEventData>
      Throws:
      IOException