throws IOException {
//
final long tableId = is.readLong(6);
if(this.reusePreviousEvent && context.getTableMapEvent(tableId) != null) {
is.skip(is.available());
final TableMapEvent event = context.getTableMapEvent(tableId).copy();
event.setHeader(header);
context.getEventListener().onEvents(event);
return;
}
//
final TableMapEvent event = new TableMapEvent(header);
event.setTableId(tableId);
event.setReserved(is.readInt(2));
event.setDatabaseNameLength(is.readInt(1));
event.setDatabaseName(is.readNullTerminatedString());
event.setTableNameLength(is.readInt(1));
event.setTableName(is.readNullTerminatedString());
event.setColumnCount(is.readUnsignedLong());
event.setColumnTypes(is.readBytes(event.getColumnCount().intValue()));
event.setColumnMetadataCount(is.readUnsignedLong());
event.setColumnMetadata(Metadata.valueOf(event.getColumnTypes(), is.readBytes(event.getColumnMetadataCount().intValue())));
event.setColumnNullabilities(is.readBit(event.getColumnCount().intValue(), true));
context.getEventListener().onEvents(event);
}