OmniSciDB  bf83d84833
 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 60 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 73 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.

73  {
77  if (storage_stats.total_free_metadata_page_count) {
80  storage_stats.total_free_metadata_page_count.value();
81  } else {
83  }
84  }
85  data_file_count += storage_stats.data_file_count;
88  if (storage_stats.total_free_data_page_count) {
91  storage_stats.total_free_data_page_count.value();
92  } else {
94  }
95  }
96  min_epoch = std::min(min_epoch, storage_stats.epoch);
97  max_epoch = std::max(max_epoch, storage_stats.epoch);
98  min_epoch_floor = std::min(min_epoch_floor, storage_stats.epoch_floor);
99  max_epoch_floor = std::max(max_epoch_floor, storage_stats.epoch_floor);
100  }
std::optional< uint64_t > total_free_data_page_count
Definition: FileMgr.h:103
std::optional< uint64_t > total_free_metadata_page_count
Definition: FileMgr.h:99
uint64_t total_metadata_page_count
Definition: FileMgr.h:98
uint64_t total_metadata_file_size
Definition: FileMgr.h:97

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: