OmniSciDB  471d68cefb
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Catalog.h File Reference

This file contains the class specification and related data structures for Catalog. More...

#include <array>
#include <atomic>
#include <cstdint>
#include <ctime>
#include <limits>
#include <list>
#include <map>
#include <mutex>
#include <string>
#include <utility>
#include <vector>
#include "Calcite/Calcite.h"
#include "Catalog/ColumnDescriptor.h"
#include "Catalog/CustomExpression.h"
#include "Catalog/DashboardDescriptor.h"
#include "Catalog/DictDescriptor.h"
#include "Catalog/ForeignServer.h"
#include "Catalog/ForeignTable.h"
#include "Catalog/LinkDescriptor.h"
#include "Catalog/SessionInfo.h"
#include "Catalog/SysCatalog.h"
#include "Catalog/TableDescriptor.h"
#include "Catalog/TableMetadata.h"
#include "Catalog/Types.h"
#include "DataMgr/DataMgr.h"
#include "QueryEngine/CompilationOptions.h"
#include "Shared/mapd_shared_mutex.h"
#include "SqliteConnector/SqliteConnector.h"
#include "LeafHostInfo.h"
+ Include dependency graph for Catalog.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  Catalog_Namespace::TableEpochInfo
 
class  Catalog_Namespace::Catalog
 class for a per-database catalog. also includes metadata for the current database and the current user. More...
 

Namespaces

 Parser
 
 File_Namespace
 
 Catalog_Namespace
 

Macros

#define SPIMAP_MAGIC1   (std::numeric_limits<unsigned>::max() / 4)
 
#define SPIMAP_MAGIC2   8
 
#define SPIMAP_GEO_PHYSICAL_INPUT(c, i)   (SPIMAP_MAGIC1 + (unsigned)(SPIMAP_MAGIC2 * ((c) + 1) + (i)))
 

Enumerations

enum  GetTablesType { GET_PHYSICAL_TABLES_AND_VIEWS, GET_PHYSICAL_TABLES, GET_VIEWS }
 

Variables

static constexpr const char * Catalog_Namespace::USERS_SYS_TABLE_NAME {"users"}
 
static constexpr const char * Catalog_Namespace::TABLES_SYS_TABLE_NAME {"tables"}
 
static constexpr const char * Catalog_Namespace::DASHBOARDS_SYS_TABLE_NAME {"dashboards"}
 
static constexpr const char * Catalog_Namespace::DATABASES_SYS_TABLE_NAME {"databases"}
 
static constexpr const char * Catalog_Namespace::PERMISSIONS_SYS_TABLE_NAME {"permissions"}
 
static constexpr const char * Catalog_Namespace::ROLES_SYS_TABLE_NAME {"roles"}
 
static constexpr const char * Catalog_Namespace::ROLE_ASSIGNMENTS_SYS_TABLE_NAME {"role_assignments"}
 
static constexpr const char * Catalog_Namespace::MEMORY_SUMMARY_SYS_TABLE_NAME {"memory_summary"}
 
static constexpr const char * Catalog_Namespace::MEMORY_DETAILS_SYS_TABLE_NAME {"memory_details"}
 

Detailed Description

This file contains the class specification and related data structures for Catalog.

Author
Todd Mostak todd@.nosp@m.map-.nosp@m.d.com, Wei Hong wei@m.nosp@m.ap-d.nosp@m..com This file contains the Catalog class specification. The Catalog class is responsible for storing, accessing and caching metadata for a single database. A global metadata could be accessed with SysCatalog class.

Definition in file Catalog.h.

Macro Definition Documentation

#define SPIMAP_GEO_PHYSICAL_INPUT (   c,
  i 
)    (SPIMAP_MAGIC1 + (unsigned)(SPIMAP_MAGIC2 * ((c) + 1) + (i)))
#define SPIMAP_MAGIC1   (std::numeric_limits<unsigned>::max() / 4)

Definition at line 75 of file Catalog.h.

Referenced by Catalog_Namespace::Catalog::getColumnIdBySpiUnlocked().

#define SPIMAP_MAGIC2   8

Definition at line 76 of file Catalog.h.

Referenced by Catalog_Namespace::Catalog::getColumnIdBySpiUnlocked().

Enumeration Type Documentation

Enumerator
GET_PHYSICAL_TABLES_AND_VIEWS 
GET_PHYSICAL_TABLES 
GET_VIEWS 

Definition at line 63 of file Catalog.h.