My Project
Public Member Functions
ha_ndbinfo Class Reference
Inheritance diagram for ha_ndbinfo:
handler Sql_alloc

List of all members.

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 ()

Member Function Documentation

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]

Return an error message specific to this handler.

Parameters:
errorerror code previously returned by handler
bufpointer to String where to add error message
Returns:
Returns true if this is a temporary error

Reimplemented from handler.

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]
Returns:
See also:
index_read_map().

Implements handler.

int ha_ndbinfo::rnd_pos ( uchar *  buf,
uchar *  pos 
) [virtual]
Returns:
See also:
index_read_map().

Implements handler.

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.

Note:
store_lock() can return more than one lock if the table is MERGE or partitioned.
that one can NOT rely on table->in_use in store_lock(). It may refer to a different thread if called from mysql_lock_abort_for_thread().
If the table is MERGE, store_lock() can return less locks than lock_count() claimed. This can happen when the MERGE children are not attached when this is called from another thread.

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.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines