OmniSciDB  6686921089
 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 38 of file CachingFileMgr.h.

Member Function Documentation

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

Definition at line 56 of file CachingFileMgr.h.

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

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

Referenced by loadGeo().

76  {
77  return base_path + "/omnisci_disk_cache";
78  }

+ Here is the caller graph for this function:

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

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

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

Referenced by dump().

63  {
64  switch (enabled_level) {
66  return "none";
68  return "fsi";
70  return "non_fsi";
72  return "all";
73  }
74  return "";
75  }

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

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

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