T - event data this deserializer is responsible forpublic abstract class AbstractRowsEventDataDeserializer<T extends EventData> extends Object implements EventDataDeserializer<T>
Current ColumnType to java type mapping is following:
At the momentColumnType.TINY: IntegerColumnType.SHORT: IntegerColumnType.LONG: IntegerColumnType.INT24: IntegerColumnType.YEAR: IntegerColumnType.ENUM: IntegerColumnType.SET: LongColumnType.LONGLONG: LongColumnType.FLOAT: FloatColumnType.DOUBLE: DoubleColumnType.BIT: java.util.BitSetColumnType.DATETIME: java.util.DateColumnType.DATETIME_V2: java.util.DateColumnType.NEWDECIMAL: java.math.BigDecimalColumnType.TIMESTAMP: java.sql.TimestampColumnType.TIMESTAMP_V2: java.sql.TimestampColumnType.DATE: java.sql.DateColumnType.TIME: java.sql.TimeColumnType.TIME_V2: java.sql.TimeColumnType.VARCHAR: StringColumnType.VAR_STRING: StringColumnType.STRING: StringColumnType.BLOB: byte[]ColumnType.GEOMETRY: byte[]
ColumnType.GEOMETRY is unsupported.| Constructor and Description |
|---|
AbstractRowsEventDataDeserializer(Map<Long,TableMapEventData> tableMapEventByTableId) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitdeserializepublic AbstractRowsEventDataDeserializer(Map<Long,TableMapEventData> tableMapEventByTableId)
protected Serializable[] deserializeRow(long tableId, BitSet includedColumns, ByteArrayInputStream inputStream) throws IOException
IOExceptionprotected Serializable deserializeCell(ColumnType type, int meta, int length, ByteArrayInputStream inputStream) throws IOException
IOExceptionprotected Serializable deserializeBit(int meta, ByteArrayInputStream inputStream) throws IOException
IOExceptionprotected Serializable deserializeTiny(ByteArrayInputStream inputStream) throws IOException
IOExceptionprotected Serializable deserializeShort(ByteArrayInputStream inputStream) throws IOException
IOExceptionprotected Serializable deserializeInt24(ByteArrayInputStream inputStream) throws IOException
IOExceptionprotected Serializable deserializeLong(ByteArrayInputStream inputStream) throws IOException
IOExceptionprotected Serializable deserializeLongLong(ByteArrayInputStream inputStream) throws IOException
IOExceptionprotected Serializable deserializeFloat(ByteArrayInputStream inputStream) throws IOException
IOExceptionprotected Serializable deserializeDouble(ByteArrayInputStream inputStream) throws IOException
IOExceptionprotected Serializable deserializeNewDecimal(int meta, ByteArrayInputStream inputStream) throws IOException
IOExceptionprotected Serializable deserializeDate(ByteArrayInputStream inputStream) throws IOException
IOExceptionprotected Serializable deserializeTime(ByteArrayInputStream inputStream) throws IOException
IOExceptionprotected Serializable deserializeTimeV2(int meta, ByteArrayInputStream inputStream) throws IOException
IOExceptionprotected Serializable deserializeTimestamp(ByteArrayInputStream inputStream) throws IOException
IOExceptionprotected Serializable deserializeTimestampV2(int meta, ByteArrayInputStream inputStream) throws IOException
IOExceptionprotected Serializable deserializeDatetime(ByteArrayInputStream inputStream) throws IOException
IOExceptionprotected Serializable deserializeDatetimeV2(int meta, ByteArrayInputStream inputStream) throws IOException
IOExceptionprotected Serializable deserializeYear(ByteArrayInputStream inputStream) throws IOException
IOExceptionprotected Serializable deserializeString(int length, ByteArrayInputStream inputStream) throws IOException
IOExceptionprotected Serializable deserializeVarString(int meta, ByteArrayInputStream inputStream) throws IOException
IOExceptionprotected Serializable deserializeBlob(int meta, ByteArrayInputStream inputStream) throws IOException
IOExceptionprotected Serializable deserializeEnum(int length, ByteArrayInputStream inputStream) throws IOException
IOExceptionprotected Serializable deserializeSet(int length, ByteArrayInputStream inputStream) throws IOException
IOExceptionprotected Serializable deserializeGeometry(int meta, ByteArrayInputStream inputStream) throws IOException
IOExceptionprotected byte[] deserializeJson(int meta,
ByteArrayInputStream inputStream)
throws IOException
JSON value on the input stream, and return MySQL's internal binary representation
of the JSON value. See JsonBinary for
a utility to parse this binary representation into something more useful, including a string representation.meta - the number of bytes in which the length of the JSON value is found first on the input streaminputStream - the stream containing the JSON valueIOException - if there is a problem reading the input streamprotected Long asUnixTime(int year, int month, int day, int hour, int minute, int second, int millis)
protected int deserializeFractionalSeconds(int meta,
ByteArrayInputStream inputStream)
throws IOException
IOExceptionpublic static BigDecimal asBigDecimal(int precision, int scale, byte[] value)
Copyright © 2019. All rights reserved.