#include <NdbDictionary.hpp>
Inheritance diagram for NdbDictionary::Dictionary:


Public Member Functions | |
| const Table * | getTable (const char *name, void **data) const |
| void | set_local_table_data_size (unsigned sz) |
| const Index * | getIndexGlobal (const char *indexName, const Table &ndbtab) const |
| const Table * | getTableGlobal (const char *tableName) const |
| int | alterTableGlobal (const Table &f, const Table &t) |
| int | dropTableGlobal (const Table &ndbtab) |
| int | dropIndexGlobal (const Index &index) |
| int | removeIndexGlobal (const Index &ndbidx, int invalidate) const |
| int | removeTableGlobal (const Table &ndbtab, int invalidate) const |
General | |
| int | listObjects (List &list, Object::Type type=Object::TypeUndefined) |
| int | listObjects (List &list, Object::Type type=Object::TypeUndefined) const |
| NdbError & | getNdbError () const |
Retrieving references to Tables and Indexes | |
| const Table * | getTable (const char *name) const |
| const Table * | getBlobTable (const Table *, const char *col_name) |
| const Table * | getBlobTable (const Table *, Uint32 col_no) |
| void | putTable (const Table *table) |
| const Index * | getIndex (const char *indexName, const char *tableName) const |
| int | listIndexes (List &list, const char *tableName) |
| int | listIndexes (List &list, const char *tableName) const |
| int | listIndexes (List &list, const Table &table) const |
Events | |
| int | createEvent (const Event &event) |
| int | dropEvent (const char *eventName) |
| const Event * | getEvent (const char *eventName) |
Table creation | |
These methods should normally not be used in an application as the result will not be visible from the MySQL Server | |
| int | createTable (const Table &table) |
| int | dropTable (Table &table) |
| int | dropTable (const char *name) |
| int | alterTable (const Table &table) |
| void | invalidateTable (const char *name) |
| void | removeCachedTable (const char *table) |
| void | removeCachedIndex (const char *index, const char *table) |
Index creation | |
These methods should normally not be used in an application as the result will not be visible from the MySQL Server | |
| int | createIndex (const Index &index) |
| int | createIndex (const Index &index, const Table &table) |
| int | dropIndex (const char *indexName, const char *tableName) |
| void | removeCachedTable (const Table *table) |
| void | removeCachedIndex (const Index *index) |
| void | invalidateTable (const Table *table) |
| void | invalidateIndex (const char *indexName, const char *tableName) |
| void | invalidateIndex (const Index *index) |
| int | forceGCPWait () |
Disk data objects | |
| int | createLogfileGroup (const LogfileGroup &, ObjectId *=0) |
| int | dropLogfileGroup (const LogfileGroup &) |
| LogfileGroup | getLogfileGroup (const char *name) |
| int | createTablespace (const Tablespace &, ObjectId *=0) |
| int | dropTablespace (const Tablespace &) |
| Tablespace | getTablespace (const char *name) |
| Tablespace | getTablespace (Uint32 tablespaceId) |
| int | createDatafile (const Datafile &, bool overwrite_existing=false, ObjectId *=0) |
| int | dropDatafile (const Datafile &) |
| Datafile | getDatafile (Uint32 node, const char *path) |
| int | createUndofile (const Undofile &, bool overwrite_existing=false, ObjectId *=0) |
| int | dropUndofile (const Undofile &) |
| Undofile | getUndofile (Uint32 node, const char *path) |
Protected Member Functions | |
| Dictionary (Ndb &ndb) | |
| ~Dictionary () | |
Private Member Functions | |
| Dictionary (NdbDictionaryImpl &) | |
| const Table * | getIndexTable (const char *indexName, const char *tableName) const |
Private Attributes | |
| NdbDictionaryImpl & | m_impl |
Friends | |
| class | NdbDictionaryImpl |
| class | UtilTransactions |
| class | NdbBlob |
Classes | |
| class | List |
| Structure for retrieving lists of object names. More... | |
Definition at line 1552 of file NdbDictionary.hpp.
| NdbDictionary::Dictionary::Dictionary | ( | Ndb & | ndb | ) | [protected] |
Definition at line 1358 of file NdbDictionary.cpp.
01359 : m_impl(* new NdbDictionaryImpl(ndb, *this)) 01360 { 01361 }
| NdbDictionary::Dictionary::~Dictionary | ( | ) | [protected] |
Definition at line 1367 of file NdbDictionary.cpp.
References m_impl.
01367 { 01368 NdbDictionaryImpl * tmp = &m_impl; 01369 if(this != tmp){ 01370 delete tmp; 01371 } 01372 }
| NdbDictionary::Dictionary::Dictionary | ( | NdbDictionaryImpl & | ) | [private] |
| int NdbDictionary::Dictionary::alterTable | ( | const Table & | table | ) |
Alter defined table given defined Table instance
| table | Table to alter |
Definition at line 1397 of file NdbDictionary.cpp.
References NdbDictionaryImpl::alterTable(), NdbTableImpl::getImpl(), and m_impl.
01397 { 01398 return m_impl.alterTable(NdbTableImpl::getImpl(t)); 01399 }
Here is the call graph for this function:

Definition at line 1402 of file NdbDictionary.cpp.
References NdbDictionaryImpl::alterTableGlobal(), f, NdbTableImpl::getImpl(), and m_impl.
01404 { 01405 return m_impl.alterTableGlobal(NdbTableImpl::getImpl(f), 01406 NdbTableImpl::getImpl(t)); 01407 }
Here is the call graph for this function:

| int NdbDictionary::Dictionary::createDatafile | ( | const Datafile & | , | |
| bool | overwrite_existing = false, |
|||
| ObjectId * | = 0 | |||
| ) |
Definition at line 1908 of file NdbDictionary.cpp.
References NdbDictionaryImpl::createDatafile(), df, NdbDictObjectImpl::getImpl(), NdbDatafileImpl::getImpl(), and m_impl.
Referenced by BackupRestore::object().
01911 { 01912 return m_impl.createDatafile(NdbDatafileImpl::getImpl(df), 01913 force, 01914 obj ? & NdbDictObjectImpl::getImpl(* obj) : 0); 01915 }
Here is the call graph for this function:

Here is the caller graph for this function:

| int NdbDictionary::Dictionary::createEvent | ( | const Event & | event | ) |
Create event given defined Event instance
| event | Event to create |
Definition at line 1614 of file NdbDictionary.cpp.
References NdbDictionaryImpl::createEvent(), NdbEventImpl::getImpl(), and m_impl.
Referenced by myCreateEvent(), and BackupRestore::table().
01615 { 01616 return m_impl.createEvent(NdbEventImpl::getImpl(ev)); 01617 }
Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 1524 of file NdbDictionary.cpp.
References NdbDictionaryImpl::createIndex(), NdbTableImpl::getImpl(), NdbIndexImpl::getImpl(), and m_impl.
01525 { 01526 return m_impl.createIndex(NdbIndexImpl::getImpl(ind), 01527 NdbTableImpl::getImpl(tab)); 01528 }
Here is the call graph for this function:

| int NdbDictionary::Dictionary::createIndex | ( | const Index & | index | ) |
Create index given defined Index instance
| index | Index to create |
Definition at line 1518 of file NdbDictionary.cpp.
References NdbDictionaryImpl::createIndex(), NdbIndexImpl::getImpl(), and m_impl.
Referenced by BackupRestore::endOfTables().
01519 { 01520 return m_impl.createIndex(NdbIndexImpl::getImpl(ind)); 01521 }
Here is the call graph for this function:

Here is the caller graph for this function:

| int NdbDictionary::Dictionary::createLogfileGroup | ( | const LogfileGroup & | , | |
| ObjectId * | = 0 | |||
| ) |
Definition at line 1850 of file NdbDictionary.cpp.
References NdbDictionaryImpl::createLogfileGroup(), NdbDictObjectImpl::getImpl(), NdbLogfileGroupImpl::getImpl(), and m_impl.
Referenced by BackupRestore::object().
01852 { 01853 return m_impl.createLogfileGroup(NdbLogfileGroupImpl::getImpl(lg), 01854 obj ? 01855 & NdbDictObjectImpl::getImpl(* obj) : 0); 01856 }
Here is the call graph for this function:

Here is the caller graph for this function:

| int NdbDictionary::Dictionary::createTable | ( | const Table & | table | ) |
Create defined table given defined Table instance
| table | Table to create |
Definition at line 1375 of file NdbDictionary.cpp.
References NdbDictionaryImpl::createTable(), DBUG_ENTER, DBUG_RETURN, NdbTableImpl::getImpl(), and m_impl.
Referenced by NdbDictionary::Table::createTableInDb(), and BackupRestore::table().
01376 { 01377 DBUG_ENTER("NdbDictionary::Dictionary::createTable"); 01378 DBUG_RETURN(m_impl.createTable(NdbTableImpl::getImpl(t))); 01379 }
Here is the call graph for this function:

Here is the caller graph for this function:

| int NdbDictionary::Dictionary::createTablespace | ( | const Tablespace & | , | |
| ObjectId * | = 0 | |||
| ) |
Definition at line 1874 of file NdbDictionary.cpp.
References NdbDictionaryImpl::createTablespace(), NdbDictObjectImpl::getImpl(), NdbTablespaceImpl::getImpl(), and m_impl.
Referenced by BackupRestore::object().
01876 { 01877 return m_impl.createTablespace(NdbTablespaceImpl::getImpl(lg), 01878 obj ? 01879 & NdbDictObjectImpl::getImpl(* obj) : 0); 01880 }
Here is the call graph for this function:

Here is the caller graph for this function:

| int NdbDictionary::Dictionary::createUndofile | ( | const Undofile & | , | |
| bool | overwrite_existing = false, |
|||
| ObjectId * | = 0 | |||
| ) |
Definition at line 1934 of file NdbDictionary.cpp.
References NdbDictionaryImpl::createUndofile(), df, NdbDictObjectImpl::getImpl(), NdbUndofileImpl::getImpl(), and m_impl.
Referenced by BackupRestore::object().
01937 { 01938 return m_impl.createUndofile(NdbUndofileImpl::getImpl(df), 01939 force, 01940 obj ? & NdbDictObjectImpl::getImpl(* obj) : 0); 01941 }
Here is the call graph for this function:

Here is the caller graph for this function:

| int NdbDictionary::Dictionary::dropDatafile | ( | const Datafile & | ) |
Definition at line 1918 of file NdbDictionary.cpp.
References df, NdbDictionaryImpl::dropDatafile(), NdbDatafileImpl::getImpl(), and m_impl.
01919 { 01920 return m_impl.dropDatafile(NdbDatafileImpl::getImpl(df)); 01921 }
Here is the call graph for this function:

| int NdbDictionary::Dictionary::dropEvent | ( | const char * | eventName | ) |
Drop event with given name
| eventName | Name of event to drop. |
Reimplemented in NdbDictionaryImpl.
Definition at line 1620 of file NdbDictionary.cpp.
References NdbDictionaryImpl::dropEvent(), and m_impl.
Referenced by main(), myCreateEvent(), and BackupRestore::table().
Here is the call graph for this function:

Here is the caller graph for this function:

| int NdbDictionary::Dictionary::dropIndex | ( | const char * | indexName, | |
| const char * | tableName | |||
| ) |
Drop index with given name
| indexName | Name of index to drop. | |
| tableName | Name of table that index belongs to. |
Reimplemented in NdbDictionaryImpl.
Definition at line 1531 of file NdbDictionary.cpp.
References NdbDictionaryImpl::dropIndex(), and m_impl.
Referenced by main().
Here is the call graph for this function:

Here is the caller graph for this function:

| int NdbDictionary::Dictionary::dropIndexGlobal | ( | const Index & | index | ) |
Definition at line 1538 of file NdbDictionary.cpp.
References NdbDictionaryImpl::dropIndexGlobal(), NdbIndexImpl::getImpl(), and m_impl.
01539 { 01540 return m_impl.dropIndexGlobal(NdbIndexImpl::getImpl(ind)); 01541 }
Here is the call graph for this function:

| int NdbDictionary::Dictionary::dropLogfileGroup | ( | const LogfileGroup & | ) |
Definition at line 1859 of file NdbDictionary.cpp.
References NdbDictionaryImpl::dropLogfileGroup(), NdbLogfileGroupImpl::getImpl(), and m_impl.
01860 { 01861 return m_impl.dropLogfileGroup(NdbLogfileGroupImpl::getImpl(lg)); 01862 }
Here is the call graph for this function:

| int NdbDictionary::Dictionary::dropTable | ( | const char * | name | ) |
Drop table given table name
| name | Name of table to drop |
Reimplemented in NdbDictionaryImpl.
Definition at line 1392 of file NdbDictionary.cpp.
References NdbDictionaryImpl::dropTable(), and m_impl.
Here is the call graph for this function:

| int NdbDictionary::Dictionary::dropTable | ( | Table & | table | ) |
Drop table given retrieved Table instance
| table | Table to drop |
Definition at line 1382 of file NdbDictionary.cpp.
References NdbDictionaryImpl::dropTable(), NdbTableImpl::getImpl(), and m_impl.
Referenced by main(), and BackupRestore::table().
01382 { 01383 return m_impl.dropTable(NdbTableImpl::getImpl(t)); 01384 }
Here is the call graph for this function:

Here is the caller graph for this function:

| int NdbDictionary::Dictionary::dropTableGlobal | ( | const Table & | ndbtab | ) |
Definition at line 1387 of file NdbDictionary.cpp.
References NdbDictionaryImpl::dropTableGlobal(), NdbTableImpl::getImpl(), and m_impl.
01387 { 01388 return m_impl.dropTableGlobal(NdbTableImpl::getImpl(t)); 01389 }
Here is the call graph for this function:

| int NdbDictionary::Dictionary::dropTablespace | ( | const Tablespace & | ) |
Definition at line 1883 of file NdbDictionary.cpp.
References NdbDictionaryImpl::dropTablespace(), NdbTablespaceImpl::getImpl(), and m_impl.
01884 { 01885 return m_impl.dropTablespace(NdbTablespaceImpl::getImpl(lg)); 01886 }
Here is the call graph for this function:

| int NdbDictionary::Dictionary::dropUndofile | ( | const Undofile & | ) |
Definition at line 1944 of file NdbDictionary.cpp.
References df, NdbDictionaryImpl::dropUndofile(), NdbUndofileImpl::getImpl(), and m_impl.
01945 { 01946 return m_impl.dropUndofile(NdbUndofileImpl::getImpl(df)); 01947 }
Here is the call graph for this function:

| int NdbDictionary::Dictionary::forceGCPWait | ( | ) |
Force gcp and wait for gcp complete
Reimplemented in NdbDictionaryImpl.
Definition at line 1575 of file NdbDictionary.cpp.
References NdbDictionaryImpl::forceGCPWait(), and m_impl.
01576 { 01577 return m_impl.forceGCPWait(); 01578 }
Here is the call graph for this function:

| const NdbDictionary::Table * NdbDictionary::Dictionary::getBlobTable | ( | const Table * | , | |
| Uint32 | col_no | |||
| ) |
Definition at line 1483 of file NdbDictionary.cpp.
References NdbDictionaryImpl::getBlobTable(), NdbTableImpl::getImpl(), and m_impl.
01485 { 01486 return m_impl.getBlobTable(NdbTableImpl::getImpl(*table), col_no); 01487 }
Here is the call graph for this function:

| const NdbDictionary::Table * NdbDictionary::Dictionary::getBlobTable | ( | const Table * | , | |
| const char * | col_name | |||
| ) |
Given main table, get blob table.
Definition at line 1471 of file NdbDictionary.cpp.
References NdbError::code, NdbDictionary::Table::getColumn(), NdbDictionary::Column::getColumnNo(), NdbDictionaryImpl::m_error, m_impl, and NULL.
01473 { 01474 const NdbDictionary::Column* col = table->getColumn(col_name); 01475 if (col == NULL) { 01476 m_impl.m_error.code = 4318; 01477 return NULL; 01478 } 01479 return getBlobTable(table, col->getColumnNo()); 01480 }
Here is the call graph for this function:

| NdbDictionary::Datafile NdbDictionary::Dictionary::getDatafile | ( | Uint32 | node, | |
| const char * | path | |||
| ) |
Definition at line 1924 of file NdbDictionary.cpp.
References NdbDictionary::Object::Datafile, NdbDictInterface::get_file(), NdbDatafileImpl::getImpl(), m_impl, and NdbDictionaryImpl::m_receiver.
Referenced by desc_datafile().
01925 { 01926 NdbDictionary::Datafile tmp; 01927 m_impl.m_receiver.get_file(NdbDatafileImpl::getImpl(tmp), 01928 NdbDictionary::Object::Datafile, 01929 node ? (int)node : -1, path); 01930 return tmp; 01931 }
Here is the call graph for this function:

Here is the caller graph for this function:

| const NdbDictionary::Event * NdbDictionary::Dictionary::getEvent | ( | const char * | eventName | ) |
Get event with given name.
| eventName | Name of event to get. |
Definition at line 1626 of file NdbDictionary.cpp.
References NdbDictionaryImpl::getEvent(), NdbEventImpl::m_facade, and m_impl.
Referenced by NdbEventOperationImpl::NdbEventOperationImpl().
01627 { 01628 NdbEventImpl * t = m_impl.getEvent(eventName); 01629 if(t) 01630 return t->m_facade; 01631 return 0; 01632 }
Here is the call graph for this function:

Here is the caller graph for this function:

| const NdbDictionary::Index * NdbDictionary::Dictionary::getIndex | ( | const char * | indexName, | |
| const char * | tableName | |||
| ) | const |
Get index with given name, NULL if undefined
| indexName | Name of index to get. | |
| tableName | Name of table that index belongs to. |
Definition at line 1544 of file NdbDictionary.cpp.
References NdbDictionaryImpl::getIndex(), NdbIndexImpl::m_facade, and m_impl.
Referenced by desc_table(), and main().
01546 { 01547 NdbIndexImpl * i = m_impl.getIndex(indexName, tableName); 01548 if(i) 01549 return i->m_facade; 01550 return 0; 01551 }
Here is the call graph for this function:

Here is the caller graph for this function:

| const NdbDictionary::Index * NdbDictionary::Dictionary::getIndexGlobal | ( | const char * | indexName, | |
| const Table & | ndbtab | |||
| ) | const |
Definition at line 1419 of file NdbDictionary.cpp.
References NdbTableImpl::getImpl(), NdbDictionaryImpl::getIndexGlobal(), NdbIndexImpl::m_facade, and m_impl.
01421 { 01422 NdbIndexImpl * i = m_impl.getIndexGlobal(indexName, 01423 NdbTableImpl::getImpl(ndbtab)); 01424 if(i) 01425 return i->m_facade; 01426 return 0; 01427 }
Here is the call graph for this function:

| const NdbDictionary::Table * NdbDictionary::Dictionary::getIndexTable | ( | const char * | indexName, | |
| const char * | tableName | |||
| ) | const [private] |
Definition at line 1600 of file NdbDictionary.cpp.
References NdbDictionaryImpl::getIndex(), NdbDictionaryImpl::getIndexTable(), NdbDictionaryImpl::getTable(), NdbTableImpl::m_facade, and m_impl.
01602 { 01603 NdbIndexImpl * i = m_impl.getIndex(indexName, tableName); 01604 NdbTableImpl * t = m_impl.getTable(tableName); 01605 if(i && t) { 01606 NdbTableImpl * it = m_impl.getIndexTable(i, t); 01607 return it->m_facade; 01608 } 01609 return 0; 01610 }
Here is the call graph for this function:

| NdbDictionary::LogfileGroup NdbDictionary::Dictionary::getLogfileGroup | ( | const char * | name | ) |
Definition at line 1865 of file NdbDictionary.cpp.
References NdbDictInterface::get_filegroup(), NdbLogfileGroupImpl::getImpl(), NdbDictionary::Object::LogfileGroup, m_impl, and NdbDictionaryImpl::m_receiver.
Referenced by desc_logfilegroup(), and BackupRestore::object().
01866 { 01867 NdbDictionary::LogfileGroup tmp; 01868 m_impl.m_receiver.get_filegroup(NdbLogfileGroupImpl::getImpl(tmp), 01869 NdbDictionary::Object::LogfileGroup, name); 01870 return tmp; 01871 }
Here is the call graph for this function:

Here is the caller graph for this function:

| struct NdbError & NdbDictionary::Dictionary::getNdbError | ( | ) | const |
Get the latest error
Reimplemented in NdbDictionaryImpl.
Definition at line 1678 of file NdbDictionary.cpp.
References NdbDictionaryImpl::getNdbError(), and m_impl.
Referenced by desc_datafile(), desc_logfilegroup(), desc_table(), desc_tablespace(), desc_undofile(), do_delete(), do_insert(), do_read(), do_update(), BackupRestore::endOfTables(), NdbEventOperationImpl::execute_nolock(), fatal_dict(), main(), myCreateEvent(), NdbEventOperationImpl::NdbEventOperationImpl(), BackupRestore::object(), populate(), scan_delete(), scan_print(), scan_update(), BackupRestore::table(), and BackupRestore::update_apply_status().
01678 { 01679 return m_impl.getNdbError(); 01680 }
Here is the call graph for this function:

Here is the caller graph for this function:

| const NdbDictionary::Table * NdbDictionary::Dictionary::getTable | ( | const char * | name, | |
| void ** | data | |||
| ) | const |
Definition at line 1410 of file NdbDictionary.cpp.
References NdbDictionaryImpl::getTable(), NdbTableImpl::m_facade, and m_impl.
01411 { 01412 NdbTableImpl * t = m_impl.getTable(name, data); 01413 if(t) 01414 return t->m_facade; 01415 return 0; 01416 }
Here is the call graph for this function:

| const NdbDictionary::Table * NdbDictionary::Dictionary::getTable | ( | const char * | name | ) | const |
Get table with given name, NULL if undefined
| name | Name of table to get |
Definition at line 1465 of file NdbDictionary.cpp.
Referenced by NdbDictionary::Table::createTableInDb(), desc_table(), do_delete(), do_insert(), do_read(), do_update(), BackupRestore::endOfTables(), BackupRestore::get_table(), listIndexes(), main(), myCreateEvent(), populate(), scan_delete(), scan_print(), scan_update(), BackupRestore::table(), and BackupRestore::update_apply_status().
Here is the caller graph for this function:

| const NdbDictionary::Table * NdbDictionary::Dictionary::getTableGlobal | ( | const char * | tableName | ) | const |
Definition at line 1430 of file NdbDictionary.cpp.
References NdbDictionaryImpl::getTableGlobal(), NdbTableImpl::m_facade, and m_impl.
Referenced by Ndb_table_guard::Ndb_table_guard().
01431 { 01432 NdbTableImpl * t = m_impl.getTableGlobal(name); 01433 if(t) 01434 return t->m_facade; 01435 return 0; 01436 }
Here is the call graph for this function:

Here is the caller graph for this function:

| NdbDictionary::Tablespace NdbDictionary::Dictionary::getTablespace | ( | Uint32 | tablespaceId | ) |
Definition at line 1898 of file NdbDictionary.cpp.
References NdbDictInterface::get_filegroup(), NdbTablespaceImpl::getImpl(), m_impl, NdbDictionaryImpl::m_receiver, and NdbDictionary::Object::Tablespace.
01899 { 01900 NdbDictionary::Tablespace tmp; 01901 m_impl.m_receiver.get_filegroup(NdbTablespaceImpl::getImpl(tmp), 01902 NdbDictionary::Object::Tablespace, 01903 tablespaceId); 01904 return tmp; 01905 }
Here is the call graph for this function:

| NdbDictionary::Tablespace NdbDictionary::Dictionary::getTablespace | ( | const char * | name | ) |
Definition at line 1889 of file NdbDictionary.cpp.
References NdbDictInterface::get_filegroup(), NdbTablespaceImpl::getImpl(), m_impl, NdbDictionaryImpl::m_receiver, and NdbDictionary::Object::Tablespace.
Referenced by desc_tablespace(), and BackupRestore::object().
01890 { 01891 NdbDictionary::Tablespace tmp; 01892 m_impl.m_receiver.get_filegroup(NdbTablespaceImpl::getImpl(tmp), 01893 NdbDictionary::Object::Tablespace, name); 01894 return tmp; 01895 }
Here is the call graph for this function:

Here is the caller graph for this function:

| NdbDictionary::Undofile NdbDictionary::Dictionary::getUndofile | ( | Uint32 | node, | |
| const char * | path | |||
| ) |
Definition at line 1950 of file NdbDictionary.cpp.
References NdbDictInterface::get_file(), NdbUndofileImpl::getImpl(), m_impl, NdbDictionaryImpl::m_receiver, and NdbDictionary::Object::Undofile.
Referenced by desc_undofile().
01951 { 01952 NdbDictionary::Undofile tmp; 01953 m_impl.m_receiver.get_file(NdbUndofileImpl::getImpl(tmp), 01954 NdbDictionary::Object::Undofile, 01955 node ? (int)node : -1, path); 01956 return tmp; 01957 }
Here is the call graph for this function:

Here is the caller graph for this function:

| void NdbDictionary::Dictionary::invalidateIndex | ( | const Index * | index | ) |
Definition at line 1554 of file NdbDictionary.cpp.
References assert, DBUG_ENTER, DBUG_VOID_RETURN, NdbIndexImpl::getImpl(), index(), NdbDictionaryImpl::invalidateObject(), m_impl, and NdbIndexImpl::m_table.
01554 { 01555 DBUG_ENTER("NdbDictionary::Dictionary::invalidateIndex"); 01556 NdbIndexImpl &i = NdbIndexImpl::getImpl(*index); 01557 assert(i.m_table != 0); 01558 m_impl.invalidateObject(* i.m_table); 01559 DBUG_VOID_RETURN; 01560 }
Here is the call graph for this function:

| void NdbDictionary::Dictionary::invalidateIndex | ( | const char * | indexName, | |
| const char * | tableName | |||
| ) |
Invalidate cached index object
Definition at line 1563 of file NdbDictionary.cpp.
References assert, DBUG_ENTER, DBUG_VOID_RETURN, NdbDictionaryImpl::getIndex(), NdbDictionaryImpl::invalidateObject(), m_impl, and NdbIndexImpl::m_table.
01564 { 01565 DBUG_ENTER("NdbDictionaryImpl::invalidateIndex"); 01566 NdbIndexImpl * i = m_impl.getIndex(indexName, tableName); 01567 if(i) { 01568 assert(i->m_table != 0); 01569 m_impl.invalidateObject(* i->m_table); 01570 } 01571 DBUG_VOID_RETURN; 01572 }
Here is the call graph for this function:

| void NdbDictionary::Dictionary::invalidateTable | ( | const Table * | table | ) |
Definition at line 1499 of file NdbDictionary.cpp.
References NdbTableImpl::getImpl(), NdbDictionaryImpl::invalidateObject(), and m_impl.
01499 { 01500 NdbTableImpl &t = NdbTableImpl::getImpl(*table); 01501 m_impl.invalidateObject(t); 01502 }
Here is the call graph for this function:

| void NdbDictionary::Dictionary::invalidateTable | ( | const char * | name | ) |
Invalidate cached table object
| name | Name of table to invalidate |
Definition at line 1490 of file NdbDictionary.cpp.
References DBUG_ENTER, DBUG_VOID_RETURN, NdbDictionaryImpl::getTable(), NdbDictionaryImpl::invalidateObject(), and m_impl.
01490 { 01491 DBUG_ENTER("NdbDictionaryImpl::invalidateTable"); 01492 NdbTableImpl * t = m_impl.getTable(name); 01493 if(t) 01494 m_impl.invalidateObject(* t); 01495 DBUG_VOID_RETURN; 01496 }
Here is the call graph for this function:

Fetch list of indexes of given table.
| list | Reference to list where to store the listed indexes | |
| table | Reference to table that index belongs to. |
Definition at line 1670 of file NdbDictionary.cpp.
References NdbDictionary::Table::getTableId(), list(), NdbDictionaryImpl::listIndexes(), and m_impl.
01672 { 01673 return m_impl.listIndexes(list, table.getTableId()); 01674 }
Here is the call graph for this function:

| int NdbDictionary::Dictionary::listIndexes | ( | List & | list, | |
| const char * | tableName | |||
| ) | const |
Definition at line 1658 of file NdbDictionary.cpp.
References getTable(), NdbDictionary::Table::getTableId(), list(), NdbDictionaryImpl::listIndexes(), and m_impl.
01660 { 01661 const NdbDictionary::Table* tab= getTable(tableName); 01662 if(tab == 0) 01663 { 01664 return -1; 01665 } 01666 return m_impl.listIndexes(list, tab->getTableId()); 01667 }
Here is the call graph for this function:

| int NdbDictionary::Dictionary::listIndexes | ( | List & | list, | |
| const char * | tableName | |||
| ) |
Fetch list of indexes of given table.
| list | Reference to list where to store the listed indexes | |
| tableName | Name of table that index belongs to. |
Definition at line 1647 of file NdbDictionary.cpp.
References getTable(), NdbDictionary::Table::getTableId(), list(), NdbDictionaryImpl::listIndexes(), and m_impl.
Referenced by desc_table(), and list().
01648 { 01649 const NdbDictionary::Table* tab= getTable(tableName); 01650 if(tab == 0) 01651 { 01652 return -1; 01653 } 01654 return m_impl.listIndexes(list, tab->getTableId()); 01655 }
Here is the call graph for this function:

Here is the caller graph for this function:

| int NdbDictionary::Dictionary::listObjects | ( | List & | list, | |
| Object::Type | type = Object::TypeUndefined | |||
| ) | const |
Definition at line 1641 of file NdbDictionary.cpp.
References list(), NdbDictionaryImpl::listObjects(), and m_impl.
01642 { 01643 return m_impl.listObjects(list, type); 01644 }
Here is the call graph for this function:

| int NdbDictionary::Dictionary::listObjects | ( | List & | list, | |
| Object::Type | type = Object::TypeUndefined | |||
| ) |
Fetch list of all objects, optionally restricted to given type.
| list | List of objects returned in the dictionary | |
| type | Restrict returned list to only contain objects of this type |
Definition at line 1635 of file NdbDictionary.cpp.
References list(), NdbDictionaryImpl::listObjects(), and m_impl.
Referenced by list().
01636 { 01637 return m_impl.listObjects(list, type); 01638 }
Here is the call graph for this function:

Here is the caller graph for this function:

| void NdbDictionary::Dictionary::putTable | ( | const Table * | table | ) |
Definition at line 1452 of file NdbDictionary.cpp.
References NdbTableImpl::getImpl(), m_impl, and NdbDictionaryImpl::putTable().
01453 { 01454 NdbDictionary::Table *copy_table = new NdbDictionary::Table; 01455 *copy_table = *table; 01456 m_impl.putTable(&NdbTableImpl::getImpl(*copy_table)); 01457 }
Here is the call graph for this function:

| void NdbDictionary::Dictionary::removeCachedIndex | ( | const Index * | index | ) |
Definition at line 1581 of file NdbDictionary.cpp.
References assert, DBUG_ENTER, DBUG_VOID_RETURN, NdbIndexImpl::getImpl(), index(), m_impl, NdbIndexImpl::m_table, and NdbDictionaryImpl::removeCachedObject().
01581 { 01582 DBUG_ENTER("NdbDictionary::Dictionary::removeCachedIndex"); 01583 NdbIndexImpl &i = NdbIndexImpl::getImpl(*index); 01584 assert(i.m_table != 0); 01585 m_impl.removeCachedObject(* i.m_table); 01586 DBUG_VOID_RETURN; 01587 }
Here is the call graph for this function:

| void NdbDictionary::Dictionary::removeCachedIndex | ( | const char * | index, | |
| const char * | table | |||
| ) |
Remove index from local cache
Definition at line 1590 of file NdbDictionary.cpp.
References assert, NdbDictionaryImpl::getIndex(), m_impl, NdbIndexImpl::m_table, and NdbDictionaryImpl::removeCachedObject().
01591 { 01592 NdbIndexImpl * i = m_impl.getIndex(indexName, tableName); 01593 if(i) { 01594 assert(i->m_table != 0); 01595 m_impl.removeCachedObject(* i->m_table); 01596 } 01597 }
Here is the call graph for this function:

| void NdbDictionary::Dictionary::removeCachedTable | ( | const Table * | table | ) |
Definition at line 1512 of file NdbDictionary.cpp.
References NdbTableImpl::getImpl(), m_impl, and NdbDictionaryImpl::removeCachedObject().
01512 { 01513 NdbTableImpl &t = NdbTableImpl::getImpl(*table); 01514 m_impl.removeCachedObject(t); 01515 }
Here is the call graph for this function:

| void NdbDictionary::Dictionary::removeCachedTable | ( | const char * | table | ) |
Remove table from local cache
Definition at line 1505 of file NdbDictionary.cpp.
References NdbDictionaryImpl::getTable(), m_impl, and NdbDictionaryImpl::removeCachedObject().
01505 { 01506 NdbTableImpl * t = m_impl.getTable(name); 01507 if(t) 01508 m_impl.removeCachedObject(* t); 01509 }
Here is the call graph for this function:

| int NdbDictionary::Dictionary::removeIndexGlobal | ( | const Index & | ndbidx, | |
| int | invalidate | |||
| ) | const |
Definition at line 1439 of file NdbDictionary.cpp.
References NdbIndexImpl::getImpl(), m_impl, and NdbDictionaryImpl::releaseIndexGlobal().
01441 { 01442 return m_impl.releaseIndexGlobal(NdbIndexImpl::getImpl(ndbidx), invalidate); 01443 }
Here is the call graph for this function:

| int NdbDictionary::Dictionary::removeTableGlobal | ( | const Table & | ndbtab, | |
| int | invalidate | |||
| ) | const |
Definition at line 1446 of file NdbDictionary.cpp.
References NdbTableImpl::getImpl(), m_impl, and NdbDictionaryImpl::releaseTableGlobal().
Referenced by Ndb::~Ndb(), and Ndb_table_guard::~Ndb_table_guard().
01448 { 01449 return m_impl.releaseTableGlobal(NdbTableImpl::getImpl(ndbtab), invalidate); 01450 }
Here is the call graph for this function:

Here is the caller graph for this function:

| void NdbDictionary::Dictionary::set_local_table_data_size | ( | unsigned | sz | ) |
Definition at line 1459 of file NdbDictionary.cpp.
References m_impl, and NdbDictionaryImpl::m_local_table_data_size.
01460 { 01461 m_impl.m_local_table_data_size= sz; 01462 }
friend class NdbBlob [friend] |
Definition at line 1844 of file NdbDictionary.hpp.
friend class NdbDictionaryImpl [friend] |
Definition at line 1842 of file NdbDictionary.hpp.
friend class UtilTransactions [friend] |
Definition at line 1843 of file NdbDictionary.hpp.
class NdbDictionaryImpl& NdbDictionary::Dictionary::m_impl [private] |
Definition at line 1846 of file NdbDictionary.hpp.
Referenced by alterTable(), alterTableGlobal(), createDatafile(), createEvent(), createIndex(), createLogfileGroup(), createTable(), createTablespace(), createUndofile(), dropDatafile(), dropEvent(), dropIndex(), dropIndexGlobal(), dropLogfileGroup(), dropTable(), dropTableGlobal(), dropTablespace(), dropUndofile(), forceGCPWait(), getBlobTable(), getDatafile(), getEvent(), NdbDictionaryImpl::getImpl(), getIndex(), getIndexGlobal(), getIndexTable(), getLogfileGroup(), getNdbError(), getTable(), getTableGlobal(), getTablespace(), getUndofile(), invalidateIndex(), invalidateTable(), listIndexes(), listObjects(), putTable(), removeCachedIndex(), removeCachedTable(), removeIndexGlobal(), removeTableGlobal(), set_local_table_data_size(), and ~Dictionary().
1.4.7

