OmniSciDB  dfae7c3b14
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 "Logger/Logger.h"
22 
23 #include "LeafAggregator.h"
24 #include "MapDServer.h"
25 #include "QueryState.h"
26 
27 class DBHandler;
28 
35  public:
36  DistributedValidate(const std::string type,
37  const bool is_repair_type_remove,
39  LeafAggregator& leaf_aggregator,
40  const Catalog_Namespace::SessionInfo session_info,
41  DBHandler& mapd_handler)
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) {}
51  std::string validate(query_state::QueryStateProxy query_state_proxy) const {
52  return nullptr;
53  };
54 
55  private:
57  const std::string type_;
62 };
std::string validate(query_state::QueryStateProxy query_state_proxy) const
Compares Aggregators and Leaves metatdata reporting what is different.
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:97
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)
This file contains the class specification and related data structures for Catalog.
const bool is_repair_type_remove_
const std::string type_
std::string cat(Ts &&... args)
Catalog_Namespace::Catalog & cat_
const Catalog_Namespace::SessionInfo session_info_
LeafAggregator & leaf_aggregator_