OmniSciDB  b24e664e58
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
DistributedValidate.h
Go to the documentation of this file.
1 /*
2  * Copyright 2019 OmniSci, Inc.
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16 
17 #pragma once
18 
19 #include <Shared/measure.h>
20 #include "Catalog/Catalog.h"
21 #include "Shared/Logger.h"
22 
23 #include "LeafAggregator.h"
24 #include "MapDServer.h"
25 
26 class MapDHandler;
27 
34  public:
35  DistributedValidate(const std::string type,
36  const bool is_repair_type_remove,
38  LeafAggregator& leaf_aggregator,
39  const Catalog_Namespace::SessionInfo session_info,
40  MapDHandler& mapd_handler)
41  : cat_(cat)
42  , type_(type)
43  , is_repair_type_remove_(is_repair_type_remove)
44  , leaf_aggregator_(leaf_aggregator)
45  , session_info_(session_info)
46  , mapd_handler_(mapd_handler) {}
50  std::string validate() const { return nullptr; };
51 
52  private:
54  const std::string type_;
59 };
Driver for running distributed validation on metadata across cluster. DistributedValidate provides fu...
class for a per-database catalog. also includes metadata for the current database and the current use...
Definition: Catalog.h:81
std::string validate() const
Compares Aggregators and Leaves metatdata reporting what is different.
This file contains the class specification and related data structures for Catalog.
MapDHandler & 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_
DistributedValidate(const std::string type, const bool is_repair_type_remove, Catalog_Namespace::Catalog &cat, LeafAggregator &leaf_aggregator, const Catalog_Namespace::SessionInfo session_info, MapDHandler &mapd_handler)