OmniSciDB  ba1bac9284
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros 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 {21474836480}
 

Detailed Description

Definition at line 38 of file CachingFileMgr.h.

Member Function Documentation

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

Definition at line 53 of file CachingFileMgr.h.

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

53  {
54  std::stringstream ss;
55  ss << "DiskCacheConfig(path = " << path << ", level = " << levelAsString()
56  << ", threads = " << num_reader_threads << ", size limit = " << size_limit
57  << ", page size = " << page_size << ")";
58  return ss.str();
59  }
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 73 of file CachingFileMgr.h.

73  {
74  return base_path + "/omnisci_disk_cache";
75  }
bool File_Namespace::DiskCacheConfig::isEnabled ( ) const
inline

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

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

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

+ Here is the caller graph for this function:

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

Definition at line 45 of file CachingFileMgr.h.

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

Referenced by PersistentStorageMgr::createPersistentStorageMgr(), PersistentStorageMgr::isChunkPrefixCacheable(), and MutableCachePersistentStorageMgr::MutableCachePersistentStorageMgr().

+ Here is the caller graph for this function:

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

Definition at line 60 of file CachingFileMgr.h.

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

Referenced by dump().

60  {
61  switch (enabled_level) {
63  return "none";
65  return "fsi";
67  return "non_fsi";
69  return "all";
70  }
71  return "";
72  }

+ Here is the caller graph for this function:

Member Data Documentation

constexpr size_t File_Namespace::DiskCacheConfig::DEFAULT_MAX_SIZE {21474836480}
static

Definition at line 39 of file CachingFileMgr.h.

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

Definition at line 42 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: