OmniSciDB  a5dc49c757
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
File_Namespace::DiskCacheConfig Struct Reference

#include <CachingFileMgr.h>

+ Collaboration diagram for File_Namespace::DiskCacheConfig:

Public Member Functions

bool isEnabledForMutableTables () const
 
bool isEnabledForFSI () const
 
bool isEnabled () const
 
std::string dump () const
 
std::string levelAsString () const
 

Static Public Member Functions

static std::string getDefaultPath (const std::string &base_path)
 

Public Attributes

std::string path
 
DiskCacheLevel enabled_level = DiskCacheLevel::none
 
size_t num_reader_threads = 0
 
size_t size_limit = DEFAULT_MAX_SIZE
 
size_t page_size = DEFAULT_PAGE_SIZE
 
size_t meta_page_size = DEFAULT_METADATA_PAGE_SIZE
 

Static Public Attributes

static constexpr size_t DEFAULT_MAX_SIZE
 

Detailed Description

Definition at line 46 of file CachingFileMgr.h.

Member Function Documentation

std::string File_Namespace::DiskCacheConfig::dump ( ) const
inline

Definition at line 65 of file CachingFileMgr.h.

References levelAsString(), num_reader_threads, page_size, path, and size_limit.

65  {
66  std::stringstream ss;
67  ss << "DiskCacheConfig(path = " << path << ", level = " << levelAsString()
68  << ", threads = " << num_reader_threads << ", size limit = " << size_limit
69  << ", page size = " << page_size << ")";
70  return ss.str();
71  }
std::string levelAsString() const

+ Here is the call graph for this function:

static std::string File_Namespace::DiskCacheConfig::getDefaultPath ( const std::string &  base_path)
inlinestatic

Definition at line 85 of file CachingFileMgr.h.

References shared::kDefaultDiskCacheDirName.

Referenced by loadGeo().

85  {
86  return base_path + "/" + shared::kDefaultDiskCacheDirName;
87  }
const std::string kDefaultDiskCacheDirName

+ Here is the caller graph for this function:

bool File_Namespace::DiskCacheConfig::isEnabled ( ) const
inline

Definition at line 64 of file CachingFileMgr.h.

References enabled_level, and File_Namespace::none.

Referenced by PersistentStorageMgr::PersistentStorageMgr().

+ Here is the caller graph for this function:

bool File_Namespace::DiskCacheConfig::isEnabledForFSI ( ) const
inline

Definition at line 61 of file CachingFileMgr.h.

References File_Namespace::all, enabled_level, and File_Namespace::fsi.

Referenced by PersistentStorageMgr::PersistentStorageMgr().

+ Here is the caller graph for this function:

bool File_Namespace::DiskCacheConfig::isEnabledForMutableTables ( ) const
inline

Definition at line 57 of file CachingFileMgr.h.

References File_Namespace::all, enabled_level, and File_Namespace::non_fsi.

Referenced by PersistentStorageMgr::PersistentStorageMgr(), and PersistentStorageMgr::removeMutableTableCacheData().

+ Here is the caller graph for this function:

std::string File_Namespace::DiskCacheConfig::levelAsString ( ) const
inline

Definition at line 72 of file CachingFileMgr.h.

References File_Namespace::all, enabled_level, File_Namespace::fsi, File_Namespace::non_fsi, and File_Namespace::none.

Referenced by dump().

72  {
73  switch (enabled_level) {
75  return "none";
77  return "fsi";
79  return "non_fsi";
81  return "all";
82  }
83  return "";
84  }

+ Here is the caller graph for this function:

Member Data Documentation

constexpr size_t File_Namespace::DiskCacheConfig::DEFAULT_MAX_SIZE
static
Initial value:
{(size_t)1024 * (size_t)1024 * (size_t)1024 *
(size_t)100}

Definition at line 49 of file CachingFileMgr.h.

DiskCacheLevel File_Namespace::DiskCacheConfig::enabled_level = DiskCacheLevel::none
size_t File_Namespace::DiskCacheConfig::meta_page_size = DEFAULT_METADATA_PAGE_SIZE

Definition at line 56 of file CachingFileMgr.h.

size_t File_Namespace::DiskCacheConfig::num_reader_threads = 0

Definition at line 53 of file CachingFileMgr.h.

Referenced by File_Namespace::CachingFileMgr::CachingFileMgr(), and dump().

std::string File_Namespace::DiskCacheConfig::path
size_t File_Namespace::DiskCacheConfig::size_limit = DEFAULT_MAX_SIZE

Definition at line 54 of file CachingFileMgr.h.

Referenced by File_Namespace::CachingFileMgr::CachingFileMgr(), and dump().


The documentation for this struct was generated from the following file: