OmniSciDB  baf940c279
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 <DistributedValidate.h>

+ Collaboration diagram for 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 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 34 of file DistributedValidate.h.

Constructor & Destructor Documentation

◆ DistributedValidate()

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 36 of file DistributedValidate.h.

42  : cat_(cat)
43  , type_(type)
44  , is_repair_type_remove_(is_repair_type_remove)
45  , leaf_aggregator_(leaf_aggregator)
46  , session_info_(session_info)
47  , mapd_handler_(mapd_handler) {}
const bool is_repair_type_remove_
const std::string type_
Catalog_Namespace::Catalog & cat_
const Catalog_Namespace::SessionInfo session_info_
LeafAggregator & leaf_aggregator_

Member Function Documentation

◆ validate()

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

Compares Aggregators and Leaves metatdata reporting what is different.

Definition at line 51 of file DistributedValidate.h.

Referenced by DBHandler::sql_execute_impl().

51  {
52  return nullptr;
53  };
+ Here is the caller graph for this function:

Member Data Documentation

◆ cat_

Catalog_Namespace::Catalog& DistributedValidate::cat_
private

Definition at line 53 of file DistributedValidate.h.

◆ is_repair_type_remove_

const bool DistributedValidate::is_repair_type_remove_
private

Definition at line 58 of file DistributedValidate.h.

◆ leaf_aggregator_

LeafAggregator& DistributedValidate::leaf_aggregator_
private

Definition at line 59 of file DistributedValidate.h.

◆ mapd_handler_

DBHandler& DistributedValidate::mapd_handler_
private

Definition at line 61 of file DistributedValidate.h.

◆ session_info_

const Catalog_Namespace::SessionInfo DistributedValidate::session_info_
private

Definition at line 60 of file DistributedValidate.h.

◆ type_

const std::string DistributedValidate::type_
private

Definition at line 57 of file DistributedValidate.h.


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