Public Member Functions |
| ha_ndbcluster (handlerton *hton, TABLE_SHARE *table) |
int | open (const char *name, int mode, uint test_if_locked) |
int | close (void) |
void | local_close (THD *thd, bool release_metadata) |
int | optimize (THD *thd, HA_CHECK_OPT *check_opt) |
int | analyze (THD *thd, HA_CHECK_OPT *check_opt) |
int | analyze_index (THD *thd) |
int | write_row (uchar *buf) |
int | update_row (const uchar *old_data, uchar *new_data) |
int | delete_row (const uchar *buf) |
int | index_init (uint index, bool sorted) |
int | index_end () |
int | index_read_idx_map (uchar *buf, uint index, const uchar *key, key_part_map keypart_map, enum ha_rkey_function find_flag) |
| Positions an index cursor to the index specified in argument. Fetches the row if available. If the key value is null, begin at the first key of the index.
|
int | index_read (uchar *buf, const uchar *key, uint key_len, enum ha_rkey_function find_flag) |
int | index_next (uchar *buf) |
int | index_prev (uchar *buf) |
int | index_first (uchar *buf) |
int | index_last (uchar *buf) |
int | index_read_last (uchar *buf, const uchar *key, uint key_len) |
int | rnd_init (bool scan) |
int | rnd_end () |
int | rnd_next (uchar *buf) |
int | rnd_pos (uchar *buf, uchar *pos) |
void | position (const uchar *record) |
int | read_first_row (uchar *buf, uint primary_key) |
virtual int | cmp_ref (const uchar *ref1, const uchar *ref2) |
int | read_range_first (const key_range *start_key, const key_range *end_key, bool eq_range, bool sorted) |
| Read first row between two ranges. Store ranges for future calls to read_range_next.
|
int | read_range_first_to_buf (const key_range *start_key, const key_range *end_key, bool eq_range, bool sorted, uchar *buf) |
int | read_range_next () |
| Read next row between two endpoints.
|
int | read_multi_range_first (KEY_MULTI_RANGE **found_range_p, KEY_MULTI_RANGE *ranges, uint range_count, bool sorted, HANDLER_BUFFER *buffer) |
int | read_multi_range_next (KEY_MULTI_RANGE **found_range_p) |
bool | null_value_index_search (KEY_MULTI_RANGE *ranges, KEY_MULTI_RANGE *end_range, HANDLER_BUFFER *buffer) |
bool | get_error_message (int error, String *buf) |
ha_rows | records () |
ha_rows | estimate_rows_upper_bound () |
int | info (uint) |
void | get_dynamic_partition_info (PARTITION_STATS *stat_info, uint part_id) |
uint32 | calculate_key_hash_value (Field **field_array) |
bool | start_read_removal (void) |
ha_rows | end_read_removal (void) |
int | extra (enum ha_extra_function operation) |
int | extra_opt (enum ha_extra_function operation, ulong cache_size) |
int | reset () |
int | external_lock (THD *thd, int lock_type) |
void | unlock_row () |
int | start_stmt (THD *thd, thr_lock_type lock_type) |
void | update_create_info (HA_CREATE_INFO *create_info) |
void | print_error (int error, myf errflag) |
const char * | table_type () const |
const char ** | bas_ext () const |
ulonglong | table_flags (void) const |
void | set_part_info (partition_info *part_info, bool early) |
ulong | index_flags (uint idx, uint part, bool all_parts) const |
virtual const key_map * | keys_to_use_for_scanning () |
bool | primary_key_is_clustered () |
uint | max_supported_record_length () const |
uint | max_supported_keys () const |
uint | max_supported_key_parts () const |
uint | max_supported_key_length () const |
uint | max_supported_key_part_length () const |
int | rename_table (const char *from, const char *to) |
int | delete_table (const char *name) |
int | create (const char *name, TABLE *form, HA_CREATE_INFO *info) |
int | get_default_no_partitions (HA_CREATE_INFO *info) |
bool | get_no_parts (const char *name, uint *no_parts) |
void | set_auto_partitions (partition_info *part_info) |
virtual bool | is_fatal_error (int error, uint flags) |
THR_LOCK_DATA ** | store_lock (THD *thd, THR_LOCK_DATA **to, enum thr_lock_type lock_type) |
bool | low_byte_first () const |
const char * | index_type (uint key_number) |
double | scan_time () |
ha_rows | records_in_range (uint inx, key_range *min_key, key_range *max_key) |
void | start_bulk_insert (ha_rows rows) |
int | end_bulk_insert () |
bool | start_bulk_update () |
int | bulk_update_row (const uchar *old_data, uchar *new_data, uint *dup_key_found) |
int | exec_bulk_update (uint *dup_key_found) |
void | end_bulk_update () |
int | ndb_update_row (const uchar *old_data, uchar *new_data, int is_bulk_update) |
const Item * | cond_push (const Item *cond) |
void | cond_pop () |
bool | maybe_pushable_join (const char *&reason) const |
int | assign_pushed_join (const ndb_pushed_join *pushed_join) |
uint | number_of_pushed_joins () const |
const TABLE * | root_of_pushed_join () const |
const TABLE * | parent_of_pushed_join () const |
int | index_read_pushed (uchar *buf, const uchar *key, key_part_map keypart_map) |
int | index_next_pushed (uchar *buf) |
uint8 | table_cache_type () |
int | ndb_err (NdbTransaction *, bool have_lock=FALSE) |
my_bool | register_query_cache_table (THD *thd, char *table_key, uint key_length, qc_engine_callback *engine_callback, ulonglong *engine_data) |
| Register a named table with a call back function to the query cache.
|
int | check_if_supported_alter (TABLE *altered_table, HA_CREATE_INFO *create_info, Alter_info *alter_info, HA_ALTER_FLAGS *alter_flags, uint table_changes) |
int | alter_table_phase1 (THD *thd, TABLE *altered_table, HA_CREATE_INFO *create_info, HA_ALTER_INFO *alter_info, HA_ALTER_FLAGS *alter_flags) |
int | alter_table_phase2 (THD *thd, TABLE *altered_table, HA_CREATE_INFO *create_info, HA_ALTER_INFO *alter_info, HA_ALTER_FLAGS *alter_flags) |
int | alter_table_phase3 (THD *thd, TABLE *table, HA_CREATE_INFO *create_info, HA_ALTER_INFO *alter_info, HA_ALTER_FLAGS *alter_flags) |
Public Member Functions inherited from handler |
virtual void | unbind_psi () |
virtual void | rebind_psi () |
| handler (handlerton *ht_arg, TABLE_SHARE *share_arg) |
virtual handler * | clone (const char *name, MEM_ROOT *mem_root) |
void | init () |
int | ha_open (TABLE *table, const char *name, int mode, int test_if_locked) |
| Open database-handler.
|
int | ha_close (void) |
int | ha_index_init (uint idx, bool sorted) |
int | ha_index_end () |
int | ha_rnd_init (bool scan) |
int | ha_rnd_end () |
int | ha_rnd_next (uchar *buf) |
int | ha_rnd_pos (uchar *buf, uchar *pos) |
int | ha_index_read_map (uchar *buf, const uchar *key, key_part_map keypart_map, enum ha_rkey_function find_flag) |
int | ha_index_read_last_map (uchar *buf, const uchar *key, key_part_map keypart_map) |
int | ha_index_read_idx_map (uchar *buf, uint index, const uchar *key, key_part_map keypart_map, enum ha_rkey_function find_flag) |
int | ha_index_next (uchar *buf) |
int | ha_index_prev (uchar *buf) |
int | ha_index_first (uchar *buf) |
int | ha_index_last (uchar *buf) |
int | ha_index_next_same (uchar *buf, const uchar *key, uint keylen) |
int | ha_index_read (uchar *buf, const uchar *key, uint key_len, enum ha_rkey_function find_flag) |
int | ha_index_read_last (uchar *buf, const uchar *key, uint key_len) |
int | ha_reset () |
| Check handler usage and reset state of file to after 'open'.
|
int | ha_index_or_rnd_end () |
Table_flags | ha_table_flags () const |
int | ha_external_lock (THD *thd, int lock_type) |
int | ha_write_row (uchar *buf) |
int | ha_update_row (const uchar *old_data, uchar *new_data) |
int | ha_delete_row (const uchar *buf) |
void | ha_release_auto_increment () |
int | check_collation_compatibility () |
int | ha_check_for_upgrade (HA_CHECK_OPT *check_opt) |
int | ha_check (THD *thd, HA_CHECK_OPT *check_opt) |
int | ha_repair (THD *thd, HA_CHECK_OPT *check_opt) |
void | ha_start_bulk_insert (ha_rows rows) |
int | ha_end_bulk_insert () |
int | ha_bulk_update_row (const uchar *old_data, uchar *new_data, uint *dup_key_found) |
int | ha_delete_all_rows () |
int | ha_truncate () |
int | ha_reset_auto_increment (ulonglong value) |
int | ha_optimize (THD *thd, HA_CHECK_OPT *check_opt) |
int | ha_analyze (THD *thd, HA_CHECK_OPT *check_opt) |
bool | ha_check_and_repair (THD *thd) |
int | ha_disable_indexes (uint mode) |
int | ha_enable_indexes (uint mode) |
int | ha_discard_or_import_tablespace (my_bool discard) |
int | ha_rename_table (const char *from, const char *to) |
int | ha_delete_table (const char *name) |
void | ha_drop_table (const char *name) |
int | ha_create (const char *name, TABLE *form, HA_CREATE_INFO *info) |
int | ha_create_handler_files (const char *name, const char *old_name, int action_flag, HA_CREATE_INFO *info) |
int | ha_change_partitions (HA_CREATE_INFO *create_info, const char *path, ulonglong *const copied, ulonglong *const deleted, const uchar *pack_frm_data, size_t pack_frm_len) |
int | ha_drop_partitions (const char *path) |
int | ha_rename_partitions (const char *path) |
void | adjust_next_insert_id_after_explicit_value (ulonglong nr) |
int | update_auto_increment () |
uint | get_dup_key (int error) |
virtual bool | get_foreign_dup_key (char *child_table_name, uint child_table_name_len, char *child_key_name, uint child_key_name_len) |
virtual void | change_table_ptr (TABLE *table_arg, TABLE_SHARE *share) |
virtual double | read_time (uint index, uint ranges, ha_rows rows) |
virtual double | index_only_read_time (uint keynr, double records) |
virtual longlong | get_memory_buffer_size () const |
virtual ha_rows | multi_range_read_info_const (uint keyno, RANGE_SEQ_IF *seq, void *seq_init_param, uint n_ranges, uint *bufsz, uint *flags, Cost_estimate *cost) |
virtual ha_rows | multi_range_read_info (uint keyno, uint n_ranges, uint keys, uint *bufsz, uint *flags, Cost_estimate *cost) |
virtual int | multi_range_read_init (RANGE_SEQ_IF *seq, void *seq_init_param, uint n_ranges, uint mode, HANDLER_BUFFER *buf) |
virtual int | multi_range_read_next (char **range_info) |
bool | has_transactions () |
virtual uint | extra_rec_buf_length () const |
virtual enum row_type | get_row_type () const |
virtual void | column_bitmaps_signal () |
| MySQL signal that it changed the column bitmap.
|
uint | get_index (void) const |
virtual bool | start_bulk_delete () |
virtual int | end_bulk_delete () |
void | set_end_range (const key_range *range, enum_range_scan_direction direction) |
int | compare_key (key_range *range) |
int | compare_key_icp (const key_range *range) const |
virtual int | ft_init () |
void | ft_end () |
virtual FT_INFO * | ft_init_ext (uint flags, uint inx, String *key) |
virtual int | ft_read (uchar *buf) |
virtual int | rnd_pos_by_record (uchar *record) |
virtual int | restart_rnd_next (uchar *buf, uchar *pos) |
virtual int | rnd_same (uchar *buf, uint inx) |
virtual void | get_dynamic_partition_info (PARTITION_STATS *stat_info, uint part_id) |
virtual bool | was_semi_consistent_read () |
virtual void | try_semi_consistent_read (bool) |
virtual void | get_auto_increment (ulonglong offset, ulonglong increment, ulonglong nb_desired_values, ulonglong *first_value, ulonglong *nb_reserved_values) |
void | set_next_insert_id (ulonglong id) |
void | restore_auto_increment (ulonglong prev_insert_id) |
int | check_old_types () |
virtual int | assign_to_keycache (THD *thd, HA_CHECK_OPT *check_opt) |
virtual int | preload_keys (THD *thd, HA_CHECK_OPT *check_opt) |
virtual int | indexes_are_disabled (void) |
virtual char * | update_table_comment (const char *comment) |
virtual void | append_create_info (String *packet) |
virtual bool | is_fk_defined_on_table_or_index (uint index) |
virtual char * | get_foreign_key_create_info () |
virtual bool | can_switch_engines () |
virtual int | get_foreign_key_list (THD *thd, List< FOREIGN_KEY_INFO > *f_key_list) |
virtual int | get_parent_foreign_key_list (THD *thd, List< FOREIGN_KEY_INFO > *f_key_list) |
virtual uint | referenced_by_foreign_key () |
virtual void | init_table_handle_for_HANDLER () |
virtual void | free_foreign_key_create_info (char *str) |
uint | max_record_length () const |
uint | max_keys () const |
uint | max_key_parts () const |
uint | max_key_length () const |
uint | max_key_part_length () const |
virtual uint | min_record_length (uint options) const |
virtual uint | checksum () const |
virtual bool | is_crashed () const |
virtual bool | auto_repair () const |
virtual uint | lock_count (void) const |
virtual Item * | idx_cond_push (uint keyno, Item *idx_cond) |
virtual void | cancel_pushed_idx_cond () |
virtual bool | check_if_incompatible_data (HA_CREATE_INFO *create_info, uint table_changes) |
virtual enum_alter_inplace_result | check_if_supported_inplace_alter (TABLE *altered_table, Alter_inplace_info *ha_alter_info) |
bool | ha_prepare_inplace_alter_table (TABLE *altered_table, Alter_inplace_info *ha_alter_info) |
bool | ha_inplace_alter_table (TABLE *altered_table, Alter_inplace_info *ha_alter_info) |
bool | ha_commit_inplace_alter_table (TABLE *altered_table, Alter_inplace_info *ha_alter_info, bool commit) |
void | ha_notify_table_changed () |
virtual void | use_hidden_primary_key () |
virtual uint | alter_table_flags (uint flags) |
virtual int | delete_all_rows () |
virtual int | truncate () |
virtual int | reset_auto_increment (ulonglong value) |
virtual bool | check_and_repair (THD *thd) |
virtual int | disable_indexes (uint mode) |
virtual int | enable_indexes (uint mode) |
virtual int | discard_or_import_tablespace (my_bool discard) |
virtual void | drop_table (const char *name) |
virtual int | create_handler_files (const char *name, const char *old_name, int action_flag, HA_CREATE_INFO *info) |
virtual int | change_partitions (HA_CREATE_INFO *create_info, const char *path, ulonglong *const copied, ulonglong *const deleted, const uchar *pack_frm_data, size_t pack_frm_len) |
virtual int | drop_partitions (const char *path) |
virtual int | rename_partitions (const char *path) |
virtual bool | set_ha_share_ref (Handler_share **arg_ha_share) |
int | get_lock_type () const |