OmniSciDB  a987f07e93
 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 41 of file CachingFileMgr.h.

Member Function Documentation

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

Definition at line 59 of file CachingFileMgr.h.

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

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

References shared::kDefaultDiskCacheDirName.

Referenced by loadGeo().

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

+ Here is the caller graph for this function:

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

Definition at line 58 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 55 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 51 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 66 of file CachingFileMgr.h.

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

Referenced by dump().

66  {
67  switch (enabled_level) {
69  return "none";
71  return "fsi";
73  return "non_fsi";
75  return "all";
76  }
77  return "";
78  }

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

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

Definition at line 48 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 49 of file CachingFileMgr.h.

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


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