My Project
|
Public Member Functions | |
ha_ndbinfo (handlerton *hton, TABLE_SHARE *table_arg) | |
const char * | table_type () const |
const char ** | bas_ext () const |
ulonglong | table_flags () const |
ulong | index_flags (uint inx, uint part, bool all_parts) const |
int | create (const char *name, TABLE *form, HA_CREATE_INFO *create_info) |
int | open (const char *name, int mode, uint test_if_locked) |
int | close (void) |
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 | info (uint) |
THR_LOCK_DATA ** | store_lock (THD *thd, THR_LOCK_DATA **to, enum thr_lock_type lock_type) |
bool | low_byte_first () const |
bool | get_error_message (int error, String *buf) |
uint8 | table_cache_type () |
const char** ha_ndbinfo::bas_ext | ( | ) | const [inline, virtual] |
If frm_error() is called then we will use this to find out what file extentions exist for the storage engine. This is also used by the default rename_table and delete_table method in handler.cc.
For engines that have two file name extentions (separate meta/index file and data file), the order of elements is relevant. First element of engine file name extentions array should be meta/index file extention. Second element - data file extention. This order is assumed by prepare_for_repair() when REPAIR TABLE ... USE_FRM is issued.
Implements handler.
bool ha_ndbinfo::get_error_message | ( | int | error, |
String * | buf | ||
) | [virtual] |
int ha_ndbinfo::rnd_init | ( | bool | scan | ) | [virtual] |
rnd_init() can be called two times without rnd_end() in between (it only makes sense if scan=1). then the second call should prepare for the new table scan (e.g if rnd_init allocates the cursor, second call should position it to the start of the table, no need to deallocate and allocate it again
Implements handler.
int ha_ndbinfo::rnd_next | ( | uchar * | buf | ) | [virtual] |
int ha_ndbinfo::rnd_pos | ( | uchar * | buf, |
uchar * | pos | ||
) | [virtual] |
THR_LOCK_DATA** ha_ndbinfo::store_lock | ( | THD * | thd, |
THR_LOCK_DATA ** | to, | ||
enum thr_lock_type | lock_type | ||
) | [inline, virtual] |
Is not invoked for non-transactional temporary tables.
Implements handler.
uint8 ha_ndbinfo::table_cache_type | ( | ) | [inline, virtual] |
Type of table for caching query
Reimplemented from handler.
const char* ha_ndbinfo::table_type | ( | ) | const [inline, virtual] |
The following can be called without an open handler
Implements handler.