public enum EventType extends Enum<EventType>
| Enum Constant and Description |
|---|
ANONYMOUS_GTID |
APPEND_BLOCK
Used for LOAD DATA INFILE statements as of MySQL 4.0.
|
BEGIN_LOAD_QUERY
Used for LOAD DATA INFILE statements as of MySQL 5.0.
|
CREATE_FILE
Used for LOAD DATA INFILE statements in MySQL 4.0 and 4.1.
|
DELETE_FILE
Used for LOAD DATA INFILE statements as of MySQL 4.0.
|
DELETE_ROWS
Describes deleted rows (within a single table).
|
EXEC_LOAD
Used for LOAD DATA INFILE statements in 4.0 and 4.1.
|
EXECUTE_LOAD_QUERY
Used for LOAD DATA INFILE statements as of MySQL 5.0.
|
EXT_DELETE_ROWS
Describes deleted rows (within a single table).
|
EXT_UPDATE_ROWS
Describes updated rows (within a single table).
|
EXT_WRITE_ROWS
Describes inserted rows (within a single table).
|
FORMAT_DESCRIPTION
A descriptor event that is written to the beginning of the each binary log file.
|
GTID
Global Transaction Identifier.
|
HEARTBEAT
Sent by a master to a slave to let the slave know that the master is still alive.
|
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.
|
INCIDENT
Used to log an out of the ordinary event that occurred on the master.
|
INTVAR
Written every time a statement uses an AUTO_INCREMENT column or the LAST_INSERT_ID() function; precedes other
events for the statement.
|
LOAD
Used for LOAD DATA INFILE statements in MySQL 3.23.
|
NEW_LOAD
Used for LOAD DATA INFILE statements in MySQL 4.0 and 4.1.
|
PRE_GA_DELETE_ROWS
Describes deleted rows (within a single table).
|
PRE_GA_UPDATE_ROWS
Describes updated rows (within a single table).
|
PRE_GA_WRITE_ROWS
Describes inserted rows (within a single table).
|
PREVIOUS_GTIDS |
QUERY
Written when an updating statement is done.
|
RAND
Written every time a statement uses the RAND() function; precedes other events for the statement.
|
ROTATE
Written when mysqld switches to a new binary log file.
|
ROWS_QUERY
Introduced to record the original query for rows events in RBR.
|
SLAVE
Not used.
|
START_V3
A descriptor event that is written to the beginning of the each binary log file.
|
STOP
Written when mysqld stops.
|
TABLE_MAP
This event precedes each row operation event.
|
TRANSACTION_CONTEXT |
UNKNOWN
Events of this event type should never occur.
|
UPDATE_ROWS
Describes updated rows (within a single table).
|
USER_VAR
Written every time a statement uses a user variable; precedes other events for the statement.
|
VIEW_CHANGE |
WRITE_ROWS
Describes inserted rows (within a single table).
|
XA_PREPARE
Prepared XA transaction terminal event similar to XID except that it is specific to XA transaction.
|
XID
Generated for a commit of a transaction that modifies one or more tables of an XA-capable storage engine.
|
| Modifier and Type | Method and Description |
|---|---|
static boolean |
isDelete(EventType eventType) |
static boolean |
isRowMutation(EventType eventType) |
static boolean |
isUpdate(EventType eventType) |
static boolean |
isWrite(EventType eventType) |
static EventType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static EventType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final EventType UNKNOWN
public static final EventType START_V3
FORMAT_DESCRIPTION.public static final EventType QUERY
public static final EventType STOP
public static final EventType ROTATE
public static final EventType INTVAR
QUERY and is not used in case of RBR.public static final EventType LOAD
public static final EventType SLAVE
public static final EventType CREATE_FILE
public static final EventType APPEND_BLOCK
public static final EventType EXEC_LOAD
public static final EventType DELETE_FILE
public static final EventType NEW_LOAD
public static final EventType RAND
QUERY and is not used in case of RBR.public static final EventType USER_VAR
QUERY and
is not used in case of RBR.public static final EventType FORMAT_DESCRIPTION
START_V3.public static final EventType XID
public static final EventType BEGIN_LOAD_QUERY
public static final EventType EXECUTE_LOAD_QUERY
public static final EventType TABLE_MAP
public static final EventType PRE_GA_WRITE_ROWS
public static final EventType PRE_GA_UPDATE_ROWS
public static final EventType PRE_GA_DELETE_ROWS
public static final EventType WRITE_ROWS
public static final EventType UPDATE_ROWS
public static final EventType DELETE_ROWS
public static final EventType INCIDENT
public static final EventType HEARTBEAT
public static final EventType IGNORABLE
public static final EventType ROWS_QUERY
public static final EventType EXT_WRITE_ROWS
public static final EventType EXT_UPDATE_ROWS
public static final EventType EXT_DELETE_ROWS
public static final EventType GTID
public static final EventType ANONYMOUS_GTID
public static final EventType PREVIOUS_GTIDS
public static final EventType TRANSACTION_CONTEXT
public static final EventType VIEW_CHANGE
public static final EventType XA_PREPARE
public static EventType[] values()
for (EventType c : EventType.values()) System.out.println(c);
public static EventType valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic static boolean isRowMutation(EventType eventType)
public static boolean isWrite(EventType eventType)
public static boolean isUpdate(EventType eventType)
public static boolean isDelete(EventType eventType)
Copyright © 2019. All rights reserved.