Class MySQLBinlogRowsEventPacket
java.lang.Object
org.apache.shardingsphere.db.protocol.mysql.packet.binlog.AbstractMySQLBinlogEventPacket
org.apache.shardingsphere.db.protocol.mysql.packet.binlog.row.MySQLBinlogRowsEventPacket
- All Implemented Interfaces:
MySQLBinlogEventPacket,MySQLPacket,DatabasePacket<MySQLPacketPayload>
MySQL binlog rows event packet.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionMySQLBinlogRowsEventPacket(MySQLBinlogEventHeader binlogEventHeader, MySQLPacketPayload payload) -
Method Summary
Modifier and TypeMethodDescriptionvoidreadRows(MySQLBinlogTableMapEventPacket tableMapEventPacket, MySQLPacketPayload payload) Read rows in binlog.protected voidwriteEvent(MySQLPacketPayload payload) Write event body packet to byte buffer.Methods inherited from class org.apache.shardingsphere.db.protocol.mysql.packet.binlog.AbstractMySQLBinlogEventPacket
getRemainBytesLength, getSequenceId, writeMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.shardingsphere.db.protocol.mysql.packet.binlog.MySQLBinlogEventPacket
getBinlogEventHeader
-
Constructor Details
-
MySQLBinlogRowsEventPacket
public MySQLBinlogRowsEventPacket(MySQLBinlogEventHeader binlogEventHeader, MySQLPacketPayload payload)
-
-
Method Details
-
readRows
public void readRows(MySQLBinlogTableMapEventPacket tableMapEventPacket, MySQLPacketPayload payload) Read rows in binlog.- Parameters:
tableMapEventPacket- TABLE_MAP_EVENT packet before this ROWS_EVENTpayload- ROWS_EVENT packet payload
-
writeEvent
Description copied from class:AbstractMySQLBinlogEventPacketWrite event body packet to byte buffer.- Specified by:
writeEventin classAbstractMySQLBinlogEventPacket- Parameters:
payload- packet payload to be written
-