61 const char *
table_type()
const override {
return "BLACKHOLE"; }
81#define BLACKHOLE_MAX_KEY 64
82#define BLACKHOLE_MAX_KEY_SEG 16
83#define BLACKHOLE_MAX_KEY_LENGTH 3072
89 [[maybe_unused]])
const override {
94 int close(
void)
override;
app_data_ptr new_data(u_int n, char *val, cons_type consensus)
Using this class is fraught with peril, and you need to be very careful when doing so.
Definition: sql_string.h:166
For each client connection we create a separate thread with THD serving as a thread/connection descri...
Definition: sql_lexer_thd.h:33
Definition: ha_blackhole.h:53
bool is_index_algorithm_supported(enum ha_key_alg key_alg) const override
Check if SE supports specific key algorithm.
Definition: ha_blackhole.h:65
int index_read_map(uchar *buf, const uchar *key, key_part_map keypart_map, enum ha_rkey_function find_flag) override
Positions an index cursor to the index specified in the handle ('active_index').
Definition: ha_blackhole.cc:193
int index_prev(uchar *buf) override
Definition: ha_blackhole.cc:235
int external_lock(THD *thd, int lock_type) override
Is not invoked for non-transactional temporary tables.
Definition: ha_blackhole.cc:156
int rnd_next(uchar *buf) override
Definition: ha_blackhole.cc:126
int open(const char *name, int mode, uint test_if_locked, const dd::Table *table_def) override
Definition: ha_blackhole.cc:82
ulong index_flags(uint inx, uint, bool) const override
Definition: ha_blackhole.h:74
int ft_read(uchar *buf) override
Definition: ha_blackhole.cc:274
~ha_blackhole() override=default
int index_read_idx_map(uchar *buf, uint idx, const uchar *key, key_part_map keypart_map, enum ha_rkey_function find_flag) override
Positions an index cursor to the index specified in argument.
Definition: ha_blackhole.cc:205
int info(uint flag) override
General method to gather info from handler.
Definition: ha_blackhole.cc:148
st_blackhole_share * share
Definition: ha_blackhole.h:55
int write_row(uchar *buf) override
Write a row.
Definition: ha_blackhole.cc:102
void position(const uchar *record) override
Definition: ha_blackhole.cc:143
ulonglong table_flags() const override
Definition: ha_blackhole.h:68
int index_next(uchar *buf) override
Definition: ha_blackhole.cc:228
FT_INFO * ft_init_ext(uint flags, uint inx, String *key) override
Definition: ha_blackhole.cc:256
int close(void) override
Definition: ha_blackhole.cc:91
uint max_supported_key_length() const override
Definition: ha_blackhole.h:85
int delete_row(const uchar *buf) override
Definition: ha_blackhole.cc:114
THR_LOCK_DATA ** store_lock(THD *thd, THR_LOCK_DATA **to, enum thr_lock_type lock_type) override
Is not invoked for non-transactional temporary tables.
Definition: ha_blackhole.cc:161
const char * table_type() const override
The following can be called without an open handler.
Definition: ha_blackhole.h:61
int ft_init() override
Definition: ha_blackhole.cc:272
int index_first(uchar *buf) override
Definition: ha_blackhole.cc:242
THR_LOCK_DATA lock
Definition: ha_blackhole.h:54
uint max_supported_keys() const override
Definition: ha_blackhole.h:84
ha_blackhole(handlerton *hton, TABLE_SHARE *table_arg)
Definition: ha_blackhole.cc:79
int rnd_init(bool scan) override
rnd_init() can be called two times without rnd_end() in between (it only makes sense if scan=1).
Definition: ha_blackhole.cc:121
int index_last(uchar *buf) override
Definition: ha_blackhole.cc:249
int create(const char *name, TABLE *table_arg, HA_CREATE_INFO *create_info, dd::Table *table_def) override
Create table (implementation).
Definition: ha_blackhole.cc:97
uint max_supported_key_part_length(HA_CREATE_INFO *create_info) const override
Definition: ha_blackhole.h:88
int rnd_pos(uchar *buf, uchar *pos) override
Definition: ha_blackhole.cc:137
int index_read_last_map(uchar *buf, const uchar *key, key_part_map keypart_map) override
The following functions works like index_read, but it find the last row with the current key value or...
Definition: ha_blackhole.cc:217
enum ha_key_alg get_default_index_algorithm() const override
Get default key algorithm for SE.
Definition: ha_blackhole.h:62
int update_row(const uchar *old_data, uchar *new_data) override
Update a single row.
Definition: ha_blackhole.cc:107
The handler class is the interface for dynamically loadable storage engines.
Definition: handler.h:4365
TABLE_SHARE * table_share
Definition: handler.h:4372
A table definition from the master.
Definition: rpl_utility.h:247
#define BLACKHOLE_MAX_KEY
Definition: ha_blackhole.h:81
#define BLACKHOLE_MAX_KEY_LENGTH
Definition: ha_blackhole.h:83
static int flags[50]
Definition: hp_test1.cc:39
static int flag
Definition: hp_test1.cc:39
This file includes constants used by all storage engines.
ha_key_alg
Definition: my_base.h:96
@ HA_KEY_ALG_RTREE
Definition: my_base.h:107
@ HA_KEY_ALG_BTREE
Definition: my_base.h:106
@ HA_KEY_ALG_FULLTEXT
Definition: my_base.h:109
ha_rkey_function
Definition: my_base.h:77
ulong key_part_map
Definition: my_base.h:1006
Some integer typedefs for easier portability.
unsigned long long int ulonglong
Definition: my_inttypes.h:55
unsigned char uchar
Definition: my_inttypes.h:51
static int record
Definition: mysqltest.cc:187
Definition: buf0block_hint.cc:29
The version of the current data dictionary table definitions.
Definition: dictionary_client.h:42
mode
Definition: file_handle.h:59
required string key
Definition: replication_asynchronous_connection_failover.proto:59
#define HA_BINLOG_ROW_CAPABLE
Definition: handler.h:338
#define HA_FILE_BASED
Definition: handler.h:323
#define HA_CAN_INDEX_BLOBS
Definition: handler.h:256
#define HA_READ_NEXT
Definition: handler.h:525
#define HA_KEYREAD_ONLY
Definition: handler.h:570
#define HA_READ_OUT_OF_SYNC
Definition: handler.h:423
#define HA_CAN_GEOMETRY
Definition: handler.h:227
#define HA_CAN_FULLTEXT
Definition: handler.h:304
#define HA_BINLOG_STMT_CAPABLE
Definition: handler.h:339
#define HA_CAN_SQL_HANDLER
Definition: handler.h:309
#define HA_READ_ORDER
Definition: handler.h:541
#define HA_READ_RANGE
Definition: handler.h:548
#define HA_AUTO_PART_KEY
Definition: handler.h:261
#define HA_NULL_IN_KEY
Definition: handler.h:244
#define HA_READ_PREV
Definition: handler.h:529
case opt name
Definition: sslopt-case.h:32
Definition: ft_global.h:71
Definition: handler.h:2998
This structure is shared between different table objects.
Definition: table.h:688
KEY * key_info
Definition: table.h:744
Definition: thr_lock.h:123
Definition: thr_lock.h:138
handlerton is a singleton structure - one instance per storage engine - to provide access to storage ...
Definition: handler.h:2594
Definition: ha_blackhole.h:42
uint table_name_length
Definition: ha_blackhole.h:45
char table_name[1]
Definition: ha_blackhole.h:46
uint use_count
Definition: ha_blackhole.h:44
THR_LOCK lock
Definition: ha_blackhole.h:43
thr_lock_type
Definition: thr_lock.h:50
unsigned int uint
Definition: uca9-dump.cc:74