OmniSciDB  94e8789169
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
system_validator::DistributedValidate Class Reference

Driver for running distributed validation on metadata across cluster. DistributedValidate provides functions for running a validation on system metadata across a cluster, with options to remove broken objects that have been identified. More...

#include <SystemValidator.h>

+ Collaboration diagram for system_validator::DistributedValidate:

Public Member Functions

 DistributedValidate (const std::string &type, const bool is_repair_type_remove, Catalog_Namespace::Catalog &cat, LeafAggregator &leaf_aggregator, const Catalog_Namespace::SessionInfo session_info, DBHandler &mapd_handler)
 
std::string validate (query_state::QueryStateProxy query_state_proxy) const
 Compares Aggregators and Leaves metatdata reporting what is different. More...
 

Private Member Functions

std::string validateEpochs (const std::vector< TTableMeta > &table_meta_vector) const
 

Private Attributes

Catalog_Namespace::Catalogcat_
 
const std::string type_
 
const bool is_repair_type_remove_
 
LeafAggregatorleaf_aggregator_
 
const
Catalog_Namespace::SessionInfo 
session_info_
 
DBHandlermapd_handler_
 

Detailed Description

Driver for running distributed validation on metadata across cluster. DistributedValidate provides functions for running a validation on system metadata across a cluster, with options to remove broken objects that have been identified.

Definition at line 41 of file SystemValidator.h.

Constructor & Destructor Documentation

system_validator::DistributedValidate::DistributedValidate ( const std::string &  type,
const bool  is_repair_type_remove,
Catalog_Namespace::Catalog cat,
LeafAggregator leaf_aggregator,
const Catalog_Namespace::SessionInfo  session_info,
DBHandler mapd_handler 
)
inline

Definition at line 43 of file SystemValidator.h.

References to_upper().

49  : cat_(cat)
50  , type_(type)
51  , is_repair_type_remove_(is_repair_type_remove)
52  , leaf_aggregator_(leaf_aggregator)
53  , session_info_(session_info)
54  , mapd_handler_(mapd_handler) {
55  if (to_upper(type) != "CLUSTER") {
56  throw std::runtime_error{
57  "Unexpected validation type specified. Only the \"VALIDATE CLUSTER;\" command "
58  "is currently supported."};
59  }
60  }
Catalog_Namespace::Catalog & cat_
const Catalog_Namespace::SessionInfo session_info_
std::string to_upper(const std::string &str)

+ Here is the call graph for this function:

Member Function Documentation

std::string system_validator::DistributedValidate::validate ( query_state::QueryStateProxy  query_state_proxy) const
inline

Compares Aggregators and Leaves metatdata reporting what is different.

Definition at line 65 of file SystemValidator.h.

Referenced by DBHandler::sql_execute_impl().

65  {
66  return nullptr;
67  };

+ Here is the caller graph for this function:

std::string system_validator::DistributedValidate::validateEpochs ( const std::vector< TTableMeta > &  table_meta_vector) const
private

Member Data Documentation

Catalog_Namespace::Catalog& system_validator::DistributedValidate::cat_
private

Definition at line 72 of file SystemValidator.h.

const bool system_validator::DistributedValidate::is_repair_type_remove_
private

Definition at line 74 of file SystemValidator.h.

LeafAggregator& system_validator::DistributedValidate::leaf_aggregator_
private

Definition at line 75 of file SystemValidator.h.

DBHandler& system_validator::DistributedValidate::mapd_handler_
private

Definition at line 77 of file SystemValidator.h.

const Catalog_Namespace::SessionInfo system_validator::DistributedValidate::session_info_
private

Definition at line 76 of file SystemValidator.h.

const std::string system_validator::DistributedValidate::type_
private

Definition at line 73 of file SystemValidator.h.


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