All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.github.shyiko.mysql.binlog.event.deserialization.AnnotateRowsEventDataDeserializer Maven / Gradle / Ivy

The newest version!
package com.github.shyiko.mysql.binlog.event.deserialization;

import com.github.shyiko.mysql.binlog.event.AnnotateRowsEventData;
import com.github.shyiko.mysql.binlog.io.ByteArrayInputStream;

import java.io.IOException;

/**
 * Mariadb ANNOTATE_ROWS_EVENT Fields
 * 
 *  string<EOF> The SQL statement (not null-terminated)
 * 
* * @author Winger */ public class AnnotateRowsEventDataDeserializer implements EventDataDeserializer { @Override public AnnotateRowsEventData deserialize(ByteArrayInputStream inputStream) throws IOException { AnnotateRowsEventData event = new AnnotateRowsEventData(); event.setRowsQuery(inputStream.readString(inputStream.available())); return event; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy