OmniSciDB  085a039ca4
 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
 

Static Public Attributes

static constexpr size_t DEFAULT_MAX_SIZE
 

Detailed Description

Definition at line 40 of file CachingFileMgr.h.

Member Function Documentation

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

Definition at line 58 of file CachingFileMgr.h.

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

58  {
59  std::stringstream ss;
60  ss << "DiskCacheConfig(path = " << path << ", level = " << levelAsString()
61  << ", threads = " << num_reader_threads << ", size limit = " << size_limit
62  << ", page size = " << page_size << ")";
63  return ss.str();
64  }
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 78 of file CachingFileMgr.h.

References shared::kDefaultDiskCacheDirName.

Referenced by loadGeo().

78  {
79  return base_path + "/" + shared::kDefaultDiskCacheDirName;
80  }
const std::string kDefaultDiskCacheDirName

+ Here is the caller graph for this function:

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

Definition at line 57 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 54 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 50 of file CachingFileMgr.h.

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

Referenced by PersistentStorageMgr::PersistentStorageMgr().

+ Here is the caller graph for this function:

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

Definition at line 65 of file CachingFileMgr.h.

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

Referenced by dump().

65  {
66  switch (enabled_level) {
68  return "none";
70  return "fsi";
72  return "non_fsi";
74  return "all";
75  }
76  return "";
77  }

+ 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 43 of file CachingFileMgr.h.

DiskCacheLevel File_Namespace::DiskCacheConfig::enabled_level = DiskCacheLevel::none
size_t File_Namespace::DiskCacheConfig::num_reader_threads = 0

Definition at line 47 of file CachingFileMgr.h.

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

size_t File_Namespace::DiskCacheConfig::size_limit = DEFAULT_MAX_SIZE

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