MySQL 5.6.14 Source Code Document
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Write_rows_log_event Class Reference

#include <log_event.h>

Inheritance diagram for Write_rows_log_event:
Collaboration diagram for Write_rows_log_event:

Public Types

enum  { TYPE_CODE = WRITE_ROWS_EVENT }
- Public Types inherited from Rows_log_event
enum  row_lookup_mode {
  ROW_LOOKUP_UNDEFINED = 0, ROW_LOOKUP_NOT_NEEDED = 1, ROW_LOOKUP_INDEX_SCAN = 2, ROW_LOOKUP_TABLE_SCAN = 3,
  ROW_LOOKUP_HASH_SCAN = 4
}
enum  enum_error {
  ERR_OPEN_FAILURE = -1, ERR_OK = 0, ERR_TABLE_LIMIT_EXCEEDED = 1, ERR_OUT_OF_MEM = 2,
  ERR_BAD_TABLE_DEF = 3, ERR_RBR_TO_SBR = 4
}
enum  enum_flag { STMT_END_F = (1U << 0), NO_FOREIGN_KEY_CHECKS_F = (1U << 1), RELAXED_UNIQUE_CHECKS_F = (1U << 2), COMPLETE_ROWS_F = (1U << 3) }
enum  { RLE_NO_FLAGS = 0U }
typedef uint16 flag_set
- Public Types inherited from Log_event
enum  enum_skip_reason { EVENT_SKIP_NOT, EVENT_SKIP_IGNORE, EVENT_SKIP_COUNT }
typedef unsigned char Byte

Protected Member Functions

int write_row (const Relay_log_info *const, const bool)
- Protected Member Functions inherited from Rows_log_event
 Rows_log_event (const char *row_data, uint event_len, const Format_description_log_event *description_event)

Additional Inherited Members

- Public Member Functions inherited from Rows_log_event
void set_flags (flag_set flags_arg)
void clear_flags (flag_set flags_arg)
flag_set get_flags (flag_set flags_arg) const
Log_event_type get_type_code ()
virtual Log_event_type get_general_type_code ()=0
virtual int get_data_size ()
MY_BITMAP const * get_cols () const
MY_BITMAP const * get_cols_ai () const
size_t get_width () const
const Table_idget_table_id () const
virtual bool is_valid () const
const uchar * get_extra_row_data () const
- Static Public Member Functions inherited from Log_event
static Log_eventread_log_event (IO_CACHE *file, const Format_description_log_event *description_event, my_bool crc_check)
static void * operator new (size_t size)
static void operator delete (void *ptr, size_t)
static void * operator new (size_t, void *ptr)
static void operator delete (void *, void *)
static Log_eventread_log_event (const char *buf, uint event_len, const char **error, const Format_description_log_event *description_event, my_bool crc_check)
static const char * get_type_str (Log_event_type type)
- Public Attributes inherited from Rows_log_event
uint m_row_count
- Protected Types inherited from Log_event
enum  enum_event_cache_type {
  EVENT_INVALID_CACHE = 0, EVENT_STMT_CACHE, EVENT_TRANSACTIONAL_CACHE, EVENT_NO_CACHE,
  EVENT_CACHE_COUNT
}
enum  enum_event_logging_type { EVENT_INVALID_LOGGING = 0, EVENT_NORMAL_LOGGING, EVENT_IMMEDIATE_LOGGING, EVENT_CACHE_LOGGING_COUNT }
- Protected Attributes inherited from Rows_log_event
Table_id m_table_id
MY_BITMAP m_cols
ulong m_width
Hash_slave_rows m_hash
uint m_rows_lookup_algorithm
MY_BITMAP m_cols_ai
ulong m_master_reclength
uint32 m_bitbuf [128/(sizeof(uint32)*8)]
uint32 m_bitbuf_ai [128/(sizeof(uint32)*8)]
uchar * m_rows_buf
uchar * m_rows_cur
uchar * m_rows_end
flag_set m_flags
Log_event_type m_type
uchar * m_extra_row_data

Detailed Description

Log row insertions and updates. The event contain several insert/update rows for a table. Note that each event contains only rows for one table.

Binary Format

Definition at line 4410 of file log_event.h.


The documentation for this class was generated from the following file: