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


Public Member Functions | |
| void | setRowGCIIndicator (bool value) |
| bool | getRowGCIIndicator () const |
| void | setRowChecksumIndicator (bool value) |
| bool | getRowChecksumIndicator () const |
| const char * | getMysqlName () const |
| void | setStoredTable (bool x) |
| bool | getStoredTable () const |
| int | getRowSizeInBytes () const |
| int | createTableInDb (Ndb *, bool existingEqualIsOk=true) const |
| int | getReplicaCount () const |
General | |
| const char * | getName () const |
| int | getTableId () const |
| const Column * | getColumn (const char *name) const |
| Column * | getColumn (const int attributeId) |
| Column * | getColumn (const char *name) |
| const Column * | getColumn (const int attributeId) const |
Storage | |
| bool | getLogging () const |
| FragmentType | getFragmentType () const |
| int | getKValue () const |
| int | getMinLoadFactor () const |
| int | getMaxLoadFactor () const |
Other | |
| int | getNoOfColumns () const |
| int | getNoOfPrimaryKeys () const |
| const char * | getPrimaryKey (int no) const |
| bool | equal (const Table &) const |
| const void * | getFrmData () const |
| Uint32 | getFrmLength () const |
| const void * | getFragmentData () const |
| Uint32 | getFragmentDataLen () const |
| const void * | getRangeListData () const |
| Uint32 | getRangeListDataLen () const |
| const void * | getTablespaceData () const |
| Uint32 | getTablespaceDataLen () const |
Table creation | |
These methods should normally not be used in an application as the result is not accessible from the MySQL Server | |
| Table (const char *name="") | |
| Table (const Table &table) | |
| virtual | ~Table () |
| Table & | operator= (const Table &table) |
| void | setName (const char *name) |
| void | addColumn (const Column &) |
| void | setLogging (bool) |
| void | setLinearFlag (Uint32 flag) |
| bool | getLinearFlag () const |
| void | setFragmentCount (Uint32) |
| Uint32 | getFragmentCount () const |
| void | setFragmentType (FragmentType) |
| void | setKValue (int kValue) |
| void | setMinLoadFactor (int) |
| void | setMaxLoadFactor (int) |
| void | setTablespace (const char *name) |
| void | setTablespace (const class Tablespace &) |
| const char * | getTablespace () const |
| bool | getTablespace (Uint32 *id=0, Uint32 *version=0) const |
| Object::Type | getObjectType () const |
| virtual Object::Status | getObjectStatus () const |
| void | setStatusInvalid () const |
| virtual int | getObjectVersion () const |
| void | setDefaultNoPartitionsFlag (Uint32 indicator) |
| Uint32 | getDefaultNoPartitionsFlag () const |
| virtual int | getObjectId () const |
| void | setFrm (const void *data, Uint32 len) |
| void | setFragmentData (const void *data, Uint32 len) |
| void | setTablespaceNames (const void *data, Uint32 len) |
| const void * | getTablespaceNames () |
| Uint32 | getTablespaceNamesLen () const |
| void | setTablespaceData (const void *data, Uint32 len) |
| void | setRangeListData (const void *data, Uint32 len) |
| void | setObjectType (Object::Type type) |
| void | setMaxRows (Uint64 maxRows) |
| Uint64 | getMaxRows () const |
| void | setMinRows (Uint64 minRows) |
| Uint64 | getMinRows () const |
Private Member Functions | |
| Table (NdbTableImpl &) | |
Private Attributes | |
| NdbTableImpl & | m_impl |
Friends | |
| class | Ndb |
| class | NdbDictionaryImpl |
| class | NdbTableImpl |
| class | NdbEventOperationImpl |
TableSize
When calculating the data storage one should add the size of all attributes (each attributeconsumes at least 4 bytes) and also an overhead of 12 byte. Variable size attributes (not supported yet) will have a size of 12 bytes plus the actual data storage parts where there is an additional overhead based on the size of the variable part.
An example table with 5 attributes: one 64 bit attribute, one 32 bit attribute, two 16 bit attributes and one array of 64 8 bits. This table will consume 12 (overhead) + 8 + 4 + 2*4 (4 is minimum) + 64 = 96 bytes per record. Additionally an overhead of about 2 % as page headers and waste should be allocated. Thus, 1 million records should consume 96 MBytes plus the overhead 2 MByte and rounded up to 100 000 kBytes.
Definition at line 578 of file NdbDictionary.hpp.
| NdbDictionary::Table::Table | ( | const char * | name = "" |
) |
Constructor
| name | Name of table |
Definition at line 298 of file NdbDictionary.cpp.
References setName().
00299 : m_impl(* new NdbTableImpl(* this)) 00300 { 00301 setName(name); 00302 }
Here is the call graph for this function:

| NdbDictionary::Table::Table | ( | const Table & | table | ) |
Copy constructor
| table | Table to be copied |
Definition at line 304 of file NdbDictionary.cpp.
References NdbTableImpl::assign(), and m_impl.
00305 : Object(org), m_impl(* new NdbTableImpl(* this)) 00306 { 00307 m_impl.assign(org.m_impl); 00308 }
Here is the call graph for this function:

| NdbDictionary::Table::~Table | ( | ) | [virtual] |
Definition at line 315 of file NdbDictionary.cpp.
References m_impl.
00315 { 00316 NdbTableImpl * tmp = &m_impl; 00317 if(this != tmp){ 00318 delete tmp; 00319 } 00320 }
| NdbDictionary::Table::Table | ( | NdbTableImpl & | ) | [private] |
| void NdbDictionary::Table::addColumn | ( | const Column & | ) |
Add a column definition to a table
Definition at line 352 of file NdbDictionary.cpp.
References NdbTableImpl::buildColumnHash(), NdbTableImpl::computeAggregates(), NdbColumnImpl::getImpl(), NdbTableImpl::m_columns, m_impl, and Vector< T >::push_back().
Referenced by NdbBlob::getBlobTable().
00352 { 00353 NdbColumnImpl* col = new NdbColumnImpl; 00354 (* col) = NdbColumnImpl::getImpl(c); 00355 m_impl.m_columns.push_back(col); 00356 m_impl.computeAggregates(); 00357 m_impl.buildColumnHash(); 00358 }
Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 636 of file NdbDictionary.cpp.
References NdbDictionary::Dictionary::createTable(), equal(), Ndb::getDictionary(), getName(), and NdbDictionary::Dictionary::getTable().
00636 { 00637 const NdbDictionary::Table * pTab = 00638 pNdb->getDictionary()->getTable(getName()); 00639 if(pTab != 0 && equal(* pTab)) 00640 return 0; 00641 if(pTab != 0 && !equal(* pTab)) 00642 return -1; 00643 return pNdb->getDictionary()->createTable(* this); 00644 }
Here is the call graph for this function:

Check if table is equal to some other table
Definition at line 616 of file NdbDictionary.cpp.
References NdbTableImpl::equal(), and m_impl.
Referenced by createTableInDb().
Here is the call graph for this function:

Here is the caller graph for this function:

| const NdbDictionary::Column * NdbDictionary::Table::getColumn | ( | const int | attributeId | ) | const |
Get column definition via index in table.
Definition at line 366 of file NdbDictionary.cpp.
References NdbTableImpl::getColumn(), and m_impl.
Here is the call graph for this function:

| NdbDictionary::Column * NdbDictionary::Table::getColumn | ( | const char * | name | ) |
Get column definition via name.
Reimplemented in NdbTableImpl.
Definition at line 371 of file NdbDictionary.cpp.
References NdbTableImpl::getColumn(), and m_impl.
Here is the call graph for this function:

| NdbDictionary::Column * NdbDictionary::Table::getColumn | ( | const int | attributeId | ) |
Get column definition via index in table.
Definition at line 377 of file NdbDictionary.cpp.
References NdbTableImpl::getColumn(), and m_impl.
Here is the call graph for this function:

| const NdbDictionary::Column * NdbDictionary::Table::getColumn | ( | const char * | name | ) | const |
Get column definition via name.
Reimplemented in NdbTableImpl.
Definition at line 361 of file NdbDictionary.cpp.
References NdbTableImpl::getColumn(), and m_impl.
Referenced by NdbDictionary::Dictionary::getBlobTable(), getRowSizeInBytes(), main(), scanReadRecords(), and BackupRestore::table().
Here is the call graph for this function:

Here is the caller graph for this function:

| Uint32 NdbDictionary::Table::getDefaultNoPartitionsFlag | ( | ) | const |
Definition at line 473 of file NdbDictionary.cpp.
References NdbTableImpl::m_default_no_part_flag, and m_impl.
Referenced by use_part_id().
00474 { 00475 return m_impl.m_default_no_part_flag; 00476 }
Here is the caller graph for this function:

| Uint32 NdbDictionary::Table::getFragmentCount | ( | ) | const |
Get fragment count
Reimplemented in NdbTableImpl.
Definition at line 537 of file NdbDictionary.cpp.
References NdbTableImpl::getFragmentCount(), and m_impl.
Referenced by get_part_id(), and set_default_nodegroups().
00538 { 00539 return m_impl.getFragmentCount(); 00540 }
Here is the call graph for this function:

Here is the caller graph for this function:

| const void * NdbDictionary::Table::getFragmentData | ( | ) | const |
Get Fragment Data (id, state and node group)
Reimplemented in NdbTableImpl.
Definition at line 548 of file NdbDictionary.cpp.
References NdbTableImpl::getFragmentData(), and m_impl.
Referenced by default_nodegroups().
00548 { 00549 return m_impl.getFragmentData(); 00550 }
Here is the call graph for this function:

Here is the caller graph for this function:

| Uint32 NdbDictionary::Table::getFragmentDataLen | ( | ) | const |
Reimplemented in NdbTableImpl.
Definition at line 553 of file NdbDictionary.cpp.
References NdbTableImpl::getFragmentDataLen(), and m_impl.
Referenced by default_nodegroups().
00553 { 00554 return m_impl.getFragmentDataLen(); 00555 }
Here is the call graph for this function:

Here is the caller graph for this function:

| NdbDictionary::Object::FragmentType NdbDictionary::Table::getFragmentType | ( | ) | const |
Get fragmentation type
Definition at line 398 of file NdbDictionary.cpp.
References NdbTableImpl::m_fragmentType, and m_impl.
Referenced by NdbBlob::getBlobTable(), and use_part_id().
00398 { 00399 return m_impl.m_fragmentType; 00400 }
Here is the caller graph for this function:

| const void * NdbDictionary::Table::getFrmData | ( | ) | const |
Get frm file stored with this table
Reimplemented in NdbTableImpl.
Definition at line 491 of file NdbDictionary.cpp.
References NdbTableImpl::getFrmData(), and m_impl.
Referenced by BackupRestore::table().
00491 { 00492 return m_impl.getFrmData(); 00493 }
Here is the call graph for this function:

Here is the caller graph for this function:

| Uint32 NdbDictionary::Table::getFrmLength | ( | ) | const |
Reimplemented in NdbTableImpl.
Definition at line 496 of file NdbDictionary.cpp.
References NdbTableImpl::getFrmLength(), and m_impl.
00496 { 00497 return m_impl.getFrmLength(); 00498 }
Here is the call graph for this function:

| int NdbDictionary::Table::getKValue | ( | ) | const |
Get KValue (Hash parameter.) Only allowed value is 6. Later implementations might add flexibility in this parameter.
Definition at line 408 of file NdbDictionary.cpp.
References m_impl, and NdbTableImpl::m_kvalue.
| bool NdbDictionary::Table::getLinearFlag | ( | ) | const |
Definition at line 525 of file NdbDictionary.cpp.
References m_impl, and NdbTableImpl::m_linear_flag.
Referenced by get_part_id().
00526 { 00527 return m_impl.m_linear_flag; 00528 }
Here is the caller graph for this function:

| bool NdbDictionary::Table::getLogging | ( | ) | const |
If set to false, then the table is a temporary table and is not logged to disk.
In case of a system restart the table will still be defined and exist but will be empty. Thus no checkpointing and no logging is performed on the table.
The default value is true and indicates a normal table with full checkpointing and logging activated.
Definition at line 388 of file NdbDictionary.cpp.
References m_impl, and NdbTableImpl::m_logging.
Referenced by NdbBlob::getBlobTable(), and getStoredTable().
Here is the caller graph for this function:

| int NdbDictionary::Table::getMaxLoadFactor | ( | ) | const |
Get MaxLoadFactor (Hash parameter.) This value specifies the load factor when starting to split the containers in the local hash tables. 100 is the maximum which will optimize memory usage. A lower figure will store less information in each container and thus find the key faster but consume more memory.
Definition at line 428 of file NdbDictionary.cpp.
References m_impl, and NdbTableImpl::m_maxLoadFactor.
00428 { 00429 return m_impl.m_maxLoadFactor; 00430 }
| Uint64 NdbDictionary::Table::getMaxRows | ( | ) | const |
Definition at line 449 of file NdbDictionary.cpp.
References m_impl, and NdbTableImpl::m_max_rows.
00450 { 00451 return m_impl.m_max_rows; 00452 }
| int NdbDictionary::Table::getMinLoadFactor | ( | ) | const |
Get MinLoadFactor (Hash parameter.) This value specifies the load factor when starting to shrink the hash table. It must be smaller than MaxLoadFactor. Both these factors are given in percentage.
Definition at line 418 of file NdbDictionary.cpp.
References m_impl, and NdbTableImpl::m_minLoadFactor.
00418 { 00419 return m_impl.m_minLoadFactor; 00420 }
| Uint64 NdbDictionary::Table::getMinRows | ( | ) | const |
Definition at line 461 of file NdbDictionary.cpp.
References m_impl, and NdbTableImpl::m_min_rows.
00462 { 00463 return m_impl.m_min_rows; 00464 }
| const char * NdbDictionary::Table::getMysqlName | ( | ) | const |
Reimplemented in NdbTableImpl.
Definition at line 342 of file NdbDictionary.cpp.
References NdbTableImpl::getMysqlName(), and m_impl.
00342 { 00343 return m_impl.getMysqlName(); 00344 }
Here is the call graph for this function:

| const char * NdbDictionary::Table::getName | ( | ) | const |
Get table name
Reimplemented in NdbTableImpl.
Definition at line 337 of file NdbDictionary.cpp.
References NdbTableImpl::getName(), and m_impl.
Referenced by clear_table(), createTableInDb(), Ndb::dropEventOperation(), BackupRestore::get_table(), TableS::getTableName(), scanReadRecords(), and select_count().
Here is the call graph for this function:

Here is the caller graph for this function:

| int NdbDictionary::Table::getNoOfColumns | ( | ) | const |
Get number of columns in the table
Definition at line 433 of file NdbDictionary.cpp.
References NdbTableImpl::m_columns, m_impl, and Vector< T >::size().
Referenced by NdbIndexScanOperation::fix_get_values(), NdbDictionaryImpl::getEvent(), getRowSizeInBytes(), NdbBlob::preExecute(), NdbIndexScanOperation::readTuples(), scanReadRecords(), BackupRestore::table(), and TableS::TableS().
Here is the call graph for this function:

Here is the caller graph for this function:

| int NdbDictionary::Table::getNoOfPrimaryKeys | ( | ) | const |
Get number of primary keys in the table
Definition at line 438 of file NdbDictionary.cpp.
References m_impl, and NdbTableImpl::m_noOfKeys.
Referenced by NdbDictInterface::createOrAlterTable().
00438 { 00439 return m_impl.m_noOfKeys; 00440 }
Here is the caller graph for this function:

| int NdbDictionary::Table::getObjectId | ( | ) | const [virtual] |
Get object id
Implements NdbDictionary::Object.
Definition at line 611 of file NdbDictionary.cpp.
References NdbDictObjectImpl::m_id, and m_impl.
Referenced by NdbDictInterface::create_index_obj_from_table(), and NdbDictionaryImpl::getIndexGlobal().
Here is the caller graph for this function:

| NdbDictionary::Object::Status NdbDictionary::Table::getObjectStatus | ( | ) | const [virtual] |
Get object status
Implements NdbDictionary::Object.
Definition at line 596 of file NdbDictionary.cpp.
References m_impl, and NdbDictObjectImpl::m_status.
| Object::Type NdbDictionary::Table::getObjectType | ( | ) | const |
Get table object type
| int NdbDictionary::Table::getObjectVersion | ( | ) | const [virtual] |
Get object version
Implements NdbDictionary::Object.
Definition at line 606 of file NdbDictionary.cpp.
References m_impl, and NdbDictObjectImpl::m_version.
Referenced by NdbDictInterface::create_index_obj_from_table(), and NdbDictionaryImpl::getIndexGlobal().
Here is the caller graph for this function:

| const char * NdbDictionary::Table::getPrimaryKey | ( | int | no | ) | const |
Get name of primary key
Definition at line 479 of file NdbDictionary.cpp.
References count, NdbTableImpl::m_columns, m_impl, and Vector< T >::size().
00479 { 00480 int count = 0; 00481 for (unsigned i = 0; i < m_impl.m_columns.size(); i++) { 00482 if (m_impl.m_columns[i]->m_pk) { 00483 if (count++ == no) 00484 return m_impl.m_columns[i]->m_name.c_str(); 00485 } 00486 } 00487 return 0; 00488 }
Here is the call graph for this function:

| const void * NdbDictionary::Table::getRangeListData | ( | ) | const |
Get Range or List Array (value, partition)
Reimplemented in NdbTableImpl.
Definition at line 580 of file NdbDictionary.cpp.
References NdbTableImpl::getRangeListData(), and m_impl.
00580 { 00581 return m_impl.getRangeListData(); 00582 }
Here is the call graph for this function:

| Uint32 NdbDictionary::Table::getRangeListDataLen | ( | ) | const |
Reimplemented in NdbTableImpl.
Definition at line 585 of file NdbDictionary.cpp.
References NdbTableImpl::getRangeListDataLen(), and m_impl.
00585 { 00586 return m_impl.getRangeListDataLen(); 00587 }
Here is the call graph for this function:

| int NdbDictionary::Table::getReplicaCount | ( | ) | const |
Definition at line 631 of file NdbDictionary.cpp.
References m_impl, and NdbTableImpl::m_replicaCount.
00631 { 00632 return m_impl.m_replicaCount; 00633 }
| bool NdbDictionary::Table::getRowChecksumIndicator | ( | ) | const |
Definition at line 678 of file NdbDictionary.cpp.
References m_impl, and NdbTableImpl::m_row_checksum.
00678 { 00679 return m_impl.m_row_checksum; 00680 }
| bool NdbDictionary::Table::getRowGCIIndicator | ( | ) | const |
| int NdbDictionary::Table::getRowSizeInBytes | ( | ) | const |
Definition at line 621 of file NdbDictionary.cpp.
References getColumn(), and getNoOfColumns().
00621 { 00622 int sz = 0; 00623 for(int i = 0; i<getNoOfColumns(); i++){ 00624 const NdbDictionary::Column * c = getColumn(i); 00625 sz += (c->getSizeInBytes()+ 3) / 4; 00626 } 00627 return sz * 4; 00628 }
Here is the call graph for this function:

| bool NdbDictionary::Table::getStoredTable | ( | ) | const [inline] |
Definition at line 914 of file NdbDictionary.hpp.
References getLogging().
00914 { return getLogging(); }
Here is the call graph for this function:

| int NdbDictionary::Table::getTableId | ( | ) | const |
Get table id
Definition at line 347 of file NdbDictionary.cpp.
References NdbDictObjectImpl::m_id, and m_impl.
Referenced by BackupRestore::get_table(), TableS::getTableId(), and NdbDictionary::Dictionary::listIndexes().
Here is the caller graph for this function:

Definition at line 647 of file NdbDictionary.cpp.
References m_impl, NdbTableImpl::m_tablespace_id, NdbDictObjectImpl::m_version, and RNIL.
00648 { 00649 if (m_impl.m_tablespace_id == RNIL) 00650 return false; 00651 if (id) 00652 *id= m_impl.m_tablespace_id; 00653 if (version) 00654 *version= m_impl.m_version; 00655 return true; 00656 }
| const char* NdbDictionary::Table::getTablespace | ( | ) | const |
| const void * NdbDictionary::Table::getTablespaceData | ( | ) | const |
Get Tablespace Data (id, version)
Reimplemented in NdbTableImpl.
Definition at line 564 of file NdbDictionary.cpp.
References NdbTableImpl::getTablespaceData(), and m_impl.
00564 { 00565 return m_impl.getTablespaceData(); 00566 }
Here is the call graph for this function:

| Uint32 NdbDictionary::Table::getTablespaceDataLen | ( | ) | const |
Reimplemented in NdbTableImpl.
Definition at line 569 of file NdbDictionary.cpp.
References NdbTableImpl::getTablespaceDataLen(), and m_impl.
00569 { 00570 return m_impl.getTablespaceDataLen(); 00571 }
Here is the call graph for this function:

| const void * NdbDictionary::Table::getTablespaceNames | ( | ) |
Definition at line 507 of file NdbDictionary.cpp.
References NdbTableImpl::getTablespaceNames(), and m_impl.
00508 { 00509 return m_impl.getTablespaceNames(); 00510 }
Here is the call graph for this function:

| Uint32 NdbDictionary::Table::getTablespaceNamesLen | ( | ) | const |
Reimplemented in NdbTableImpl.
Definition at line 513 of file NdbDictionary.cpp.
References NdbTableImpl::getTablespaceNamesLen(), and m_impl.
00514 { 00515 return m_impl.getTablespaceNamesLen(); 00516 }
Here is the call graph for this function:

| NdbDictionary::Table & NdbDictionary::Table::operator= | ( | const Table & | table | ) |
Assignment operator, deep copy
| table | Table to be copied |
Definition at line 323 of file NdbDictionary.cpp.
References NdbTableImpl::assign(), NdbTableImpl::m_facade, and m_impl.
00324 { 00325 m_impl.assign(table.m_impl); 00326 00327 m_impl.m_facade = this; 00328 return *this; 00329 }
Here is the call graph for this function:

| void NdbDictionary::Table::setDefaultNoPartitionsFlag | ( | Uint32 | indicator | ) |
Set/Get indicator if default number of partitions is used in table.
Definition at line 467 of file NdbDictionary.cpp.
References NdbTableImpl::m_default_no_part_flag, and m_impl.
00468 { 00469 m_impl.m_default_no_part_flag = flag;; 00470 }
| void NdbDictionary::Table::setFragmentCount | ( | Uint32 | ) |
Set fragment count
Reimplemented in NdbTableImpl.
Definition at line 531 of file NdbDictionary.cpp.
References m_impl, and NdbTableImpl::setFragmentCount().
00532 { 00533 m_impl.setFragmentCount(count); 00534 }
Here is the call graph for this function:

| void NdbDictionary::Table::setFragmentData | ( | const void * | data, | |
| Uint32 | len | |||
| ) |
Set array of fragment information containing Fragment Identity Node group identity Fragment State
Reimplemented in NdbTableImpl.
Definition at line 558 of file NdbDictionary.cpp.
References m_impl, and NdbTableImpl::setFragmentData().
Referenced by set_default_nodegroups().
00559 { 00560 m_impl.setFragmentData(data, len); 00561 }
Here is the call graph for this function:

Here is the caller graph for this function:

| void NdbDictionary::Table::setFragmentType | ( | FragmentType | ) |
Set fragmentation type
Definition at line 393 of file NdbDictionary.cpp.
References NdbTableImpl::m_fragmentType, and m_impl.
Referenced by NdbBlob::getBlobTable().
00393 { 00394 m_impl.m_fragmentType = ft; 00395 }
Here is the caller graph for this function:

| void NdbDictionary::Table::setFrm | ( | const void * | data, | |
| Uint32 | len | |||
| ) |
Set frm file to store with this table
Reimplemented in NdbTableImpl.
Definition at line 543 of file NdbDictionary.cpp.
References m_impl, and NdbTableImpl::setFrm().
Here is the call graph for this function:

| void NdbDictionary::Table::setKValue | ( | int | kValue | ) |
Set KValue (Hash parameter.) Only allowed value is 6. Later implementations might add flexibility in this parameter.
Definition at line 403 of file NdbDictionary.cpp.
References m_impl, and NdbTableImpl::m_kvalue.
| void NdbDictionary::Table::setLinearFlag | ( | Uint32 | flag | ) |
Set/Get Linear Hash Flag
Definition at line 519 of file NdbDictionary.cpp.
References m_impl, and NdbTableImpl::m_linear_flag.
00520 { 00521 m_impl.m_linear_flag = flag; 00522 }
| void NdbDictionary::Table::setLogging | ( | bool | ) |
Definition at line 383 of file NdbDictionary.cpp.
References m_impl, and NdbTableImpl::m_logging.
Referenced by NdbBlob::getBlobTable(), and setStoredTable().
Here is the caller graph for this function:

| void NdbDictionary::Table::setMaxLoadFactor | ( | int | ) |
Set MaxLoadFactor (Hash parameter.) This value specifies the load factor when starting to split the containers in the local hash tables. 100 is the maximum which will optimize memory usage. A lower figure will store less information in each container and thus find the key faster but consume more memory.
Definition at line 423 of file NdbDictionary.cpp.
References m_impl, and NdbTableImpl::m_maxLoadFactor.
00423 { 00424 m_impl.m_maxLoadFactor = lf; 00425 }
| void NdbDictionary::Table::setMaxRows | ( | Uint64 | maxRows | ) |
Set/Get Maximum number of rows in table (only used to calculate number of partitions).
Definition at line 443 of file NdbDictionary.cpp.
References m_impl, and NdbTableImpl::m_max_rows.
00444 { 00445 m_impl.m_max_rows = maxRows; 00446 }
| void NdbDictionary::Table::setMinLoadFactor | ( | int | ) |
Set MinLoadFactor (Hash parameter.) This value specifies the load factor when starting to shrink the hash table. It must be smaller than MaxLoadFactor. Both these factors are given in percentage.
Definition at line 413 of file NdbDictionary.cpp.
References m_impl, and NdbTableImpl::m_minLoadFactor.
00413 { 00414 m_impl.m_minLoadFactor = lf; 00415 }
| void NdbDictionary::Table::setMinRows | ( | Uint64 | minRows | ) |
Set/Get Minimum number of rows in table (only used to calculate number of partitions).
Definition at line 455 of file NdbDictionary.cpp.
References m_impl, and NdbTableImpl::m_min_rows.
00456 { 00457 m_impl.m_min_rows = minRows; 00458 }
| void NdbDictionary::Table::setName | ( | const char * | name | ) |
Name of table
| name | Name of table |
Reimplemented in NdbTableImpl.
Definition at line 332 of file NdbDictionary.cpp.
References m_impl, and NdbTableImpl::setName().
Referenced by Table().
Here is the call graph for this function:

Here is the caller graph for this function:

| void NdbDictionary::Table::setObjectType | ( | Object::Type | type | ) |
Set table object type
| void NdbDictionary::Table::setRangeListData | ( | const void * | data, | |
| Uint32 | len | |||
| ) |
Set array of information mapping range values and list values to fragments. This is essentially a sorted map consisting of pairs of value, fragment identity. For range partitions there is one pair per fragment. For list partitions it could be any number of pairs, at least as many as there are fragments.
Reimplemented in NdbTableImpl.
Definition at line 590 of file NdbDictionary.cpp.
References m_impl, and NdbTableImpl::setRangeListData().
00591 { 00592 m_impl.setRangeListData(data, len); 00593 }
Here is the call graph for this function:

| void NdbDictionary::Table::setRowChecksumIndicator | ( | bool | value | ) |
Definition at line 673 of file NdbDictionary.cpp.
References m_impl, and NdbTableImpl::m_row_checksum.
00673 { 00674 m_impl.m_row_checksum = val; 00675 }
| void NdbDictionary::Table::setRowGCIIndicator | ( | bool | value | ) |
| void NdbDictionary::Table::setStatusInvalid | ( | ) | const |
Definition at line 601 of file NdbDictionary.cpp.
References NdbDictionary::Object::Invalid, m_impl, and NdbDictObjectImpl::m_status.
00601 { 00602 m_impl.m_status = NdbDictionary::Object::Invalid; 00603 }
| void NdbDictionary::Table::setStoredTable | ( | bool | x | ) | [inline] |
Definition at line 913 of file NdbDictionary.hpp.
References setLogging().
00913 { setLogging(x); }
Here is the call graph for this function:

| void NdbDictionary::Table::setTablespace | ( | const class Tablespace & | ) |
| void NdbDictionary::Table::setTablespace | ( | const char * | name | ) |
Definition at line 659 of file NdbDictionary.cpp.
References BaseString::assign(), m_impl, NdbTableImpl::m_tablespace_id, NdbTableImpl::m_tablespace_name, and NdbTableImpl::m_tablespace_version.
00659 { 00660 m_impl.m_tablespace_id = ~0; 00661 m_impl.m_tablespace_version = ~0; 00662 m_impl.m_tablespace_name.assign(name); 00663 }
Here is the call graph for this function:

| void NdbDictionary::Table::setTablespaceData | ( | const void * | data, | |
| Uint32 | len | |||
| ) |
Set tablespace information per fragment Contains a tablespace id and a tablespace version
Reimplemented in NdbTableImpl.
Definition at line 574 of file NdbDictionary.cpp.
References m_impl, and NdbTableImpl::setTablespaceData().
00575 { 00576 m_impl.setTablespaceData(data, len); 00577 }
Here is the call graph for this function:

| void NdbDictionary::Table::setTablespaceNames | ( | const void * | data, | |
| Uint32 | len | |||
| ) |
Set/Get tablespace names per fragment
Reimplemented in NdbTableImpl.
Definition at line 501 of file NdbDictionary.cpp.
References m_impl, and NdbTableImpl::setTablespaceNames().
00502 { 00503 m_impl.setTablespaceNames(data, len); 00504 }
Here is the call graph for this function:

friend class Ndb [friend] |
Definition at line 924 of file NdbDictionary.hpp.
friend class NdbDictionaryImpl [friend] |
Definition at line 925 of file NdbDictionary.hpp.
friend class NdbEventOperationImpl [friend] |
Definition at line 927 of file NdbDictionary.hpp.
friend class NdbTableImpl [friend] |
Definition at line 926 of file NdbDictionary.hpp.
class NdbTableImpl& NdbDictionary::Table::m_impl [private] |
Definition at line 929 of file NdbDictionary.hpp.
Referenced by addColumn(), equal(), getColumn(), getDefaultNoPartitionsFlag(), getFragmentCount(), getFragmentData(), getFragmentDataLen(), getFragmentType(), getFrmData(), getFrmLength(), NdbTableImpl::getImpl(), getKValue(), getLinearFlag(), getLogging(), getMaxLoadFactor(), getMaxRows(), getMinLoadFactor(), getMinRows(), getMysqlName(), getName(), getNoOfColumns(), getNoOfPrimaryKeys(), getObjectId(), getObjectStatus(), getObjectVersion(), getPrimaryKey(), getRangeListData(), getRangeListDataLen(), getReplicaCount(), getRowChecksumIndicator(), getRowGCIIndicator(), getTableId(), getTablespace(), getTablespaceData(), getTablespaceDataLen(), getTablespaceNames(), getTablespaceNamesLen(), operator=(), Ndb::setDatabaseAndSchemaName(), setDefaultNoPartitionsFlag(), setFragmentCount(), setFragmentData(), setFragmentType(), setFrm(), setKValue(), setLinearFlag(), setLogging(), setMaxLoadFactor(), setMaxRows(), setMinLoadFactor(), setMinRows(), setName(), setRangeListData(), setRowChecksumIndicator(), setRowGCIIndicator(), setStatusInvalid(), setTablespace(), setTablespaceData(), setTablespaceNames(), Table(), and ~Table().
1.4.7

