OmniSciDB  fe05a0c208
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
anonymous_namespace{DdlCommandExecutor.cpp}::AggregratedStorageStats Struct Reference
+ Inheritance diagram for anonymous_namespace{DdlCommandExecutor.cpp}::AggregratedStorageStats:
+ Collaboration diagram for anonymous_namespace{DdlCommandExecutor.cpp}::AggregratedStorageStats:

Public Member Functions

 AggregratedStorageStats (const File_Namespace::StorageStats &storage_stats)
 
void aggregate (const File_Namespace::StorageStats &storage_stats)
 
- Public Member Functions inherited from File_Namespace::StorageStats
 StorageStats ()=default
 
 StorageStats (const StorageStats &storage_stats)=default
 
virtual ~StorageStats ()=default
 

Public Attributes

int32_t min_epoch
 
int32_t max_epoch
 
int32_t min_epoch_floor
 
int32_t max_epoch_floor
 
- Public Attributes inherited from File_Namespace::StorageStats
int32_t epoch {0}
 
int32_t epoch_floor {0}
 
uint64_t metadata_file_count {0}
 
uint64_t total_metadata_file_size {0}
 
uint64_t total_metadata_page_count {0}
 
std::optional< uint64_t > total_free_metadata_page_count {}
 
uint64_t data_file_count {0}
 
uint64_t total_data_file_size {0}
 
uint64_t total_data_page_count {0}
 
std::optional< uint64_t > total_free_data_page_count {}
 

Detailed Description

Definition at line 61 of file DdlCommandExecutor.cpp.

Constructor & Destructor Documentation

Member Function Documentation

void anonymous_namespace{DdlCommandExecutor.cpp}::AggregratedStorageStats::aggregate ( const File_Namespace::StorageStats storage_stats)
inline

Definition at line 74 of file DdlCommandExecutor.cpp.

References File_Namespace::StorageStats::data_file_count, File_Namespace::StorageStats::epoch, File_Namespace::StorageStats::epoch_floor, File_Namespace::StorageStats::metadata_file_count, File_Namespace::StorageStats::total_data_file_size, File_Namespace::StorageStats::total_data_page_count, File_Namespace::StorageStats::total_free_data_page_count, File_Namespace::StorageStats::total_free_metadata_page_count, File_Namespace::StorageStats::total_metadata_file_size, and File_Namespace::StorageStats::total_metadata_page_count.

74  {
78  if (storage_stats.total_free_metadata_page_count) {
81  storage_stats.total_free_metadata_page_count.value();
82  } else {
84  }
85  }
86  data_file_count += storage_stats.data_file_count;
89  if (storage_stats.total_free_data_page_count) {
92  storage_stats.total_free_data_page_count.value();
93  } else {
95  }
96  }
97  min_epoch = std::min(min_epoch, storage_stats.epoch);
98  max_epoch = std::max(max_epoch, storage_stats.epoch);
99  min_epoch_floor = std::min(min_epoch_floor, storage_stats.epoch_floor);
100  max_epoch_floor = std::max(max_epoch_floor, storage_stats.epoch_floor);
101  }
std::optional< uint64_t > total_free_data_page_count
Definition: FileMgr.h:107
std::optional< uint64_t > total_free_metadata_page_count
Definition: FileMgr.h:103
uint64_t total_metadata_page_count
Definition: FileMgr.h:102
uint64_t total_metadata_file_size
Definition: FileMgr.h:101

Member Data Documentation

int32_t anonymous_namespace{DdlCommandExecutor.cpp}::AggregratedStorageStats::max_epoch
int32_t anonymous_namespace{DdlCommandExecutor.cpp}::AggregratedStorageStats::max_epoch_floor
int32_t anonymous_namespace{DdlCommandExecutor.cpp}::AggregratedStorageStats::min_epoch
int32_t anonymous_namespace{DdlCommandExecutor.cpp}::AggregratedStorageStats::min_epoch_floor

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