OmniSciDB  a5dc49c757
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups 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}
 
uint32_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 {}
 
uint32_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 {}
 
std::optional< uint32_t > fragment_count {}
 

Detailed Description

Definition at line 249 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 262 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.

262  {
263  metadata_file_count += storage_stats.metadata_file_count;
266  if (storage_stats.total_free_metadata_page_count) {
269  storage_stats.total_free_metadata_page_count.value();
270  } else {
272  }
273  }
274  data_file_count += storage_stats.data_file_count;
277  if (storage_stats.total_free_data_page_count) {
279  total_free_data_page_count.value() +=
280  storage_stats.total_free_data_page_count.value();
281  } else {
283  }
284  }
285  min_epoch = std::min(min_epoch, storage_stats.epoch);
286  max_epoch = std::max(max_epoch, storage_stats.epoch);
287  min_epoch_floor = std::min(min_epoch_floor, storage_stats.epoch_floor);
288  max_epoch_floor = std::max(max_epoch_floor, storage_stats.epoch_floor);
289  }
std::optional< uint64_t > total_free_data_page_count
Definition: FileMgr.h:119
std::optional< uint64_t > total_free_metadata_page_count
Definition: FileMgr.h:115
uint64_t total_metadata_page_count
Definition: FileMgr.h:114
uint64_t total_metadata_file_size
Definition: FileMgr.h:113

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: