OmniSciDB  72c90bc290
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
InternalStorageStatsDataWrapper.h
Go to the documentation of this file.
1 /*
2  * Copyright 2022 HEAVY.AI, 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 <vector>
20 
23 
24 namespace foreign_storage {
26  std::string node{"Server"};
27  int32_t database_id;
28  int32_t table_id;
29  int32_t shard_id;
32 
34  int32_t table_id,
35  int32_t shard_id,
38  : database_id(database_id)
39  , table_id(table_id)
40  , shard_id(shard_id)
41  , total_dictionary_data_file_size(total_dictionary_data_file_size)
42  , storage_stats(storage_stats) {}
43 };
44 
46  public:
48 
49  InternalStorageStatsDataWrapper(const int db_id, const ForeignTable* foreign_table);
50 
51  private:
52  void initializeObjectsForTable(const std::string& table_name) override;
53 
55  const std::string& table_name,
56  std::map<std::string, import_export::TypedImportBuffer*>& import_buffers) override;
57 
58  std::vector<StorageDetails> storage_details_;
59 };
60 } // namespace foreign_storage
void populateChunkBuffersForTable(const std::string &table_name, std::map< std::string, import_export::TypedImportBuffer * > &import_buffers) override
StorageDetails(int32_t database_id, int32_t table_id, int32_t shard_id, int64_t total_dictionary_data_file_size, File_Namespace::StorageStats storage_stats)
This file includes the class specification for the FILE manager (FileMgr), and related data structure...
void initializeObjectsForTable(const std::string &table_name) override