Enum Class EventType
- All Implemented Interfaces:
Serializable,Comparable<EventType>,Constable
- Author:
- Stanley Shyiko
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionMariaDB Support EventsUsed for LOAD DATA INFILE statements as of MySQL 4.0.Used for LOAD DATA INFILE statements as of MySQL 5.0.Used for LOAD DATA INFILE statements in MySQL 4.0 and 4.1.Used for LOAD DATA INFILE statements as of MySQL 4.0.Describes deleted rows (within a single table).Used for LOAD DATA INFILE statements in 4.0 and 4.1.Used for LOAD DATA INFILE statements as of MySQL 5.0.Describes deleted rows (within a single table).Describes updated rows (within a single table).Describes inserted rows (within a single table).A descriptor event that is written to the beginning of the each binary log file.Global Transaction Identifier.Sent by a master to a slave to let the slave know that the master is still alive.In some situations, it is necessary to send over ignorable data to the slave: data that a slave can handle in case there is code for handling it, but which can be ignored if it is not recognized.Used to log an out of the ordinary event that occurred on the master.Written every time a statement uses an AUTO_INCREMENT column or the LAST_INSERT_ID() function; precedes other events for the statement.Used for LOAD DATA INFILE statements in MySQL 3.23.Used for LOAD DATA INFILE statements in MySQL 4.0 and 4.1.Extension of UPDATE_ROWS_EVENT, allowing partial values according to binlog_row_value_options.Describes deleted rows (within a single table).Describes updated rows (within a single table).Describes inserted rows (within a single table).Written when an updating statement is done.Written every time a statement uses the RAND() function; precedes other events for the statement.Written when mysqld switches to a new binary log file.Introduced to record the original query for rows events in RBR.Not used.A descriptor event that is written to the beginning of the each binary log file.Written when mysqld stops.This event precedes each row operation event.Generated when 'binlog_transaction_compression' is set to 'ON'.Events of this event type should never occur.Describes updated rows (within a single table).Written every time a statement uses a user variable; precedes other events for the statement.Describes inserted rows (within a single table).Prepared XA transaction terminal event similar to XID except that it is specific to XA transaction.Generated for a commit of a transaction that modifies one or more tables of an XA-capable storage engine. -
Method Summary
Modifier and TypeMethodDescriptionstatic EventTypebyEventNumber(int num) static booleanstatic booleanisRowMutation(EventType eventType) static booleanstatic booleanstatic EventTypeReturns the enum constant of this class with the specified name.static EventType[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
UNKNOWN
Events of this event type should never occur. Not written to a binary log. -
START_V3
A descriptor event that is written to the beginning of the each binary log file. (In MySQL 4.0 and 4.1, this event is written only to the first binary log file that the server creates after startup.) This event is used in MySQL 3.23 through 4.1 and superseded in MySQL 5.0 byFORMAT_DESCRIPTION. -
QUERY
Written when an updating statement is done. -
STOP
Written when mysqld stops. -
ROTATE
Written when mysqld switches to a new binary log file. This occurs when someone issues a FLUSH LOGS statement or the current binary log file becomes larger than max_binlog_size. -
INTVAR
Written every time a statement uses an AUTO_INCREMENT column or the LAST_INSERT_ID() function; precedes other events for the statement. This is written only before aQUERYand is not used in case of RBR. -
LOAD
Used for LOAD DATA INFILE statements in MySQL 3.23. -
SLAVE
Not used. -
CREATE_FILE
Used for LOAD DATA INFILE statements in MySQL 4.0 and 4.1. -
APPEND_BLOCK
Used for LOAD DATA INFILE statements as of MySQL 4.0. -
EXEC_LOAD
Used for LOAD DATA INFILE statements in 4.0 and 4.1. -
DELETE_FILE
Used for LOAD DATA INFILE statements as of MySQL 4.0. -
NEW_LOAD
Used for LOAD DATA INFILE statements in MySQL 4.0 and 4.1. -
RAND
Written every time a statement uses the RAND() function; precedes other events for the statement. Indicates the seed values to use for generating a random number with RAND() in the next statement. This is written only before aQUERYand is not used in case of RBR. -
USER_VAR
Written every time a statement uses a user variable; precedes other events for the statement. Indicates the value to use for the user variable in the next statement. This is written only before aQUERYand is not used in case of RBR. -
FORMAT_DESCRIPTION
A descriptor event that is written to the beginning of the each binary log file. This event is used as of MySQL 5.0; it supersedesSTART_V3. -
XID
-
BEGIN_LOAD_QUERY
Used for LOAD DATA INFILE statements as of MySQL 5.0. -
EXECUTE_LOAD_QUERY
Used for LOAD DATA INFILE statements as of MySQL 5.0. -
TABLE_MAP
This event precedes each row operation event. It maps a table definition to a number, where the table definition consists of database and table names and column definitions. The purpose of this event is to enable replication when a table has different definitions on the master and slave. Row operation events that belong to the same transaction may be grouped into sequences, in which case each such sequence of events begins with a sequence of TABLE_MAP events: one per table used by events in the sequence. Used in case of RBR. -
PRE_GA_WRITE_ROWS
Describes inserted rows (within a single table). Used in case of RBR (5.1.0 - 5.1.15). -
PRE_GA_UPDATE_ROWS
Describes updated rows (within a single table). Used in case of RBR (5.1.0 - 5.1.15). -
PRE_GA_DELETE_ROWS
Describes deleted rows (within a single table). Used in case of RBR (5.1.0 - 5.1.15). -
WRITE_ROWS
Describes inserted rows (within a single table). Used in case of RBR (5.1.16 - mysql-trunk). -
UPDATE_ROWS
Describes updated rows (within a single table). Used in case of RBR (5.1.16 - mysql-trunk). -
DELETE_ROWS
Describes deleted rows (within a single table). Used in case of RBR (5.1.16 - mysql-trunk). -
INCIDENT
Used to log an out of the ordinary event that occurred on the master. It notifies the slave that something happened on the master that might cause data to be in an inconsistent state. -
HEARTBEAT
Sent by a master to a slave to let the slave know that the master is still alive. Not written to a binary log. -
IGNORABLE
In some situations, it is necessary to send over ignorable data to the slave: data that a slave can handle in case there is code for handling it, but which can be ignored if it is not recognized. -
ROWS_QUERY
Introduced to record the original query for rows events in RBR. -
EXT_WRITE_ROWS
Describes inserted rows (within a single table). Used in case of RBR (5.1.18+). -
EXT_UPDATE_ROWS
Describes updated rows (within a single table). Used in case of RBR (5.1.18+). -
EXT_DELETE_ROWS
Describes deleted rows (within a single table). Used in case of RBR (5.1.18+). -
GTID
Global Transaction Identifier. -
ANONYMOUS_GTID
-
PREVIOUS_GTIDS
-
TRANSACTION_CONTEXT
-
VIEW_CHANGE
-
XA_PREPARE
Prepared XA transaction terminal event similar to XID except that it is specific to XA transaction. -
PARTIAL_UPDATE_ROWS_EVENT
Extension of UPDATE_ROWS_EVENT, allowing partial values according to binlog_row_value_options. -
TRANSACTION_PAYLOAD
Generated when 'binlog_transaction_compression' is set to 'ON'. It encapsulates all the events of a transaction in a Zstd compressed payload. -
ANNOTATE_ROWS
MariaDB Support Events- See Also:
-
BINLOG_CHECKPOINT
-
MARIADB_GTID
-
MARIADB_GTID_LIST
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
isRowMutation
-
isWrite
-
isUpdate
-
isDelete
-
byEventNumber
-