MySQL 5.6.14 Source Code Document
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
NdbDictInterface Class Reference
Collaboration diagram for NdbDictInterface:

Classes

struct  Tx

Public Member Functions

 NdbDictInterface (Tx &tx, NdbError &err, int &warn)
bool setTransporter (class Ndb *ndb)
class TransporterFacadegetTransporter () const
int dictSignal (NdbApiSignal *signal, LinearSectionPtr ptr[3], int secs, int nodeId, Uint32 waitsignaltype, int timeout, Uint32 RETRIES, const int *errcodes=0, int temporaryMask=0)
int createTable (class Ndb &ndb, NdbTableImpl &)
bool supportedAlterTable (const NdbTableImpl &, NdbTableImpl &)
int alterTable (class Ndb &ndb, const NdbTableImpl &, NdbTableImpl &, Uint32 &)
void syncInternalName (Ndb &ndb, NdbTableImpl &impl)
int compChangeMask (const NdbTableImpl &old_impl, const NdbTableImpl &impl, Uint32 &change_mask)
int serializeTableDesc (Ndb &ndb, NdbTableImpl &impl, UtilBufferWriter &w)
int sendAlterTable (const NdbTableImpl &impl, Uint32 change_mask, UtilBufferWriter &w)
int sendCreateTable (const NdbTableImpl &impl, UtilBufferWriter &w)
int dropTable (const NdbTableImpl &)
int createIndex (class Ndb &ndb, const NdbIndexImpl &, const NdbTableImpl &, bool offline)
int dropIndex (const NdbIndexImpl &, const NdbTableImpl &)
int doIndexStatReq (class Ndb &ndb, const NdbIndexImpl &, const NdbTableImpl &, Uint32 requestType)
int doIndexStatReq (class Ndb &ndb, Uint32 indexId, Uint32 indexVersion, Uint32 tableId, Uint32 requestType)
int createEvent (class Ndb &ndb, NdbEventImpl &, int getFlag)
int dropEvent (const NdbEventImpl &)
int dropEvent (NdbApiSignal *signal, LinearSectionPtr ptr[3], int noLSP)
int executeSubscribeEvent (class Ndb &ndb, NdbEventOperationImpl &, Uint32 &)
int stopSubscribeEvent (class Ndb &ndb, NdbEventOperationImpl &)
int listObjects (NdbDictionary::Dictionary::List &list, ListTablesReq &ltreq, bool fullyQualifiedNames)
int listObjects (NdbApiSignal *signal, bool &listTablesLongSignal)
int unpackListTables (NdbDictionary::Dictionary::List &list, bool fullyQualifiedNames)
int unpackOldListTables (NdbDictionary::Dictionary::List &list, bool fullyQualifiedNames)
NdbTableImplgetTable (int tableId, bool fullyQualifiedNames)
NdbTableImplgetTable (const BaseString &name, bool fullyQualifiedNames)
NdbTableImplgetTable (class NdbApiSignal *signal, LinearSectionPtr ptr[3], Uint32 noOfSections, bool fullyQualifiedNames)
int forceGCPWait (int type)
int getRestartGCI (Uint32 *)
int create_file (const NdbFileImpl &, const NdbFilegroupImpl &, bool overwrite, NdbDictObjectImpl *)
int drop_file (const NdbFileImpl &)
int create_filegroup (const NdbFilegroupImpl &, NdbDictObjectImpl *)
int drop_filegroup (const NdbFilegroupImpl &)
int get_filegroup (NdbFilegroupImpl &, NdbDictionary::Object::Type, Uint32)
int get_filegroup (NdbFilegroupImpl &, NdbDictionary::Object::Type, const char *)
int get_file (NdbFileImpl &, NdbDictionary::Object::Type, int, int)
int get_file (NdbFileImpl &, NdbDictionary::Object::Type, int, const char *)
int create_hashmap (const NdbHashMapImpl &, NdbDictObjectImpl *, Uint32 flags)
int get_hashmap (NdbHashMapImpl &, Uint32 id)
int get_hashmap (NdbHashMapImpl &, const char *name)
int beginSchemaTrans (bool retry711=true)
int endSchemaTrans (Uint32 flags)
bool checkAllNodeVersionsMin (Uint32 minNdbVersion) const
const NdbErrorgetNdbError () const

Static Public Member Functions

static int parseTableInfo (NdbTableImpl **dst, const Uint32 *data, Uint32 len, bool fullyQualifiedNames, Uint32 version=0xFFFFFFFF)
static int parseFileInfo (NdbFileImpl &dst, const Uint32 *data, Uint32 len)
static int parseFilegroupInfo (NdbFilegroupImpl &dst, const Uint32 *data, Uint32 len)
static int parseHashMapInfo (NdbHashMapImpl &dst, const Uint32 *data, Uint32 len)
static int create_index_obj_from_table (NdbIndexImpl **dst, NdbTableImpl *index_table, const NdbTableImpl *primary_table)

Public Attributes

Txm_tx
NdbErrorm_error
int & m_warn
Uint32 m_buckets
struct {
   Uint32   m_buckets
m_sub_start_conf
Uint32 gci_hi
Uint32 gci_lo
struct {
   Uint32   gci_hi
   Uint32   gci_lo
m_wait_gcp_conf

Friends

class Ndb
class NdbImpl
class NdbDictionaryImpl

Detailed Description

Definition at line 565 of file NdbDictionaryImpl.hpp.

Member Function Documentation

int NdbDictInterface::create_hashmap ( const NdbHashMapImpl src,
NdbDictObjectImpl obj,
Uint32  flags 
)

pack is stupid...and requires bytes! we store shorts...so multiply by 2

Definition at line 8211 of file NdbDictionaryImpl.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

int NdbDictInterface::create_index_obj_from_table ( NdbIndexImpl **  dst,
NdbTableImpl index_table,
const NdbTableImpl primary_table 
)
static

reverse map

Definition at line 4116 of file NdbDictionaryImpl.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

int NdbDictInterface::createTable ( class Ndb ndb,
NdbTableImpl impl 
)

Make sure that hashmap exists (i.e after upgrade or similar)

Definition at line 3147 of file NdbDictionaryImpl.cpp.

Here is the call graph for this function:

int NdbDictInterface::dictSignal ( NdbApiSignal signal,
LinearSectionPtr  ptr[3],
int  secs,
int  nodeId,
Uint32  waitsignaltype,
int  timeout,
Uint32  RETRIES,
const int *  errcodes = 0,
int  temporaryMask = 0 
)

Handle error codes

Definition at line 2301 of file NdbDictionaryImpl.cpp.

Here is the caller graph for this function:

int NdbDictInterface::parseHashMapInfo ( NdbHashMapImpl dst,
const Uint32 *  data,
Uint32  len 
)
static

pack is stupid...and requires bytes! we store shorts...so divide by 2

Definition at line 8175 of file NdbDictionaryImpl.cpp.

Here is the call graph for this function:

int NdbDictInterface::parseTableInfo ( NdbTableImpl **  dst,
const Uint32 *  data,
Uint32  len,
bool  fullyQualifiedNames,
Uint32  version = 0xFFFFFFFF 
)
static

NOTE: fragment data is currently an array of Uint16 and len is specified in bytes (yuck) please change to Uint32 and len == count

Definition at line 2701 of file NdbDictionaryImpl.cpp.

Here is the call graph for this function:

int NdbDictInterface::serializeTableDesc ( Ndb ndb,
NdbTableImpl impl,
UtilBufferWriter w 
)

NOTE: fragment data is currently an array of Uint16 and len is specified in bytes (yuck) please change to Uint32 and len == count

NOTE: len is specified in bytes (yuck) please change to len == count

Definition at line 3472 of file NdbDictionaryImpl.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

Friends And Related Function Documentation

friend class Ndb
friend

Reciver(s)

Definition at line 724 of file NdbDictionaryImpl.hpp.


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