OmniSciDB  471d68cefb
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
foreign_storage::anonymous_namespace{CachingForeignStorageMgr.cpp} Namespace Reference

Functions

bool is_system_table_chunk_key (const ChunkKey &chunk_key)
 

Variables

constexpr int64_t MAX_REFRESH_TIME_IN_SECONDS = 60 * 60
 

Function Documentation

bool foreign_storage::anonymous_namespace{CachingForeignStorageMgr.cpp}::is_system_table_chunk_key ( const ChunkKey chunk_key)
inline

Definition at line 30 of file CachingForeignStorageMgr.cpp.

References CHECK, CHUNK_KEY_DB_IDX, CHUNK_KEY_TABLE_IDX, Catalog_Namespace::SysCatalog::getCatalog(), has_table_prefix(), and Catalog_Namespace::SysCatalog::instance().

Referenced by foreign_storage::CachingForeignStorageMgr::fetchBuffer(), and foreign_storage::CachingForeignStorageMgr::getChunkMetadataVecForKeyPrefix().

30  {
31  CHECK(has_table_prefix(chunk_key));
32  auto catalog =
34  CHECK(catalog);
35  auto table = catalog->getForeignTable(chunk_key[CHUNK_KEY_TABLE_IDX]);
36  CHECK(table);
37  return table->is_system_table;
38 }
#define CHUNK_KEY_DB_IDX
Definition: types.h:39
static SysCatalog & instance()
Definition: SysCatalog.h:325
#define CHUNK_KEY_TABLE_IDX
Definition: types.h:40
bool has_table_prefix(const ChunkKey &key)
Definition: types.h:49
std::shared_ptr< Catalog > getCatalog(const std::string &dbName)
#define CHECK(condition)
Definition: Logger.h:209

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

Variable Documentation

constexpr int64_t foreign_storage::anonymous_namespace{CachingForeignStorageMgr.cpp}::MAX_REFRESH_TIME_IN_SECONDS = 60 * 60