22 #include <ndb_global.h>
23 #include <ndb_types.h>
24 #include <ndb_version.h>
26 #include <util/Vector.hpp>
27 #include <util/BaseString.hpp>
28 #include <util/HashMap.hpp>
39 ERR_ClusterFailure = 42,
71 const char * getName()
const;
72 Uint32 getTableId()
const;
74 bool addColumn(
const Column aCol);
75 unsigned columns(
void)
const;
76 const Column* getColumn(
const unsigned attributeId)
const;
77 const Column* getColumn(
const char * name)
const;
87 const char* prefix,
const char* dbname =
"",
88 const char* table_prefix =
"");
93 int openTable(Uint32 tableId,
const Table**);
96 int createScanOperation(
const Table*,
98 Uint32 max_rows = 256, Uint32 max_bytes = 0);
102 static const size_t NUM_HARDCODED_TABLES = 2;
103 unsigned m_connect_count;
104 unsigned m_min_db_version;
106 pthread_mutex_t m_mutex;
108 Table* m_tables_table;
109 Table* m_columns_table;
115 bool addColumn(Uint32 tableId,
const Column aCol);
117 bool load_ndbinfo_tables();
118 bool load_hardcoded_tables(
void);
127 #include "NdbInfoScanOperation.hpp"
128 #include "NdbInfoRecAttr.hpp"