OpenTwin 0.1
OpenTwin
 
Loading...
Searching...
No Matches
TableStatisticAnalyser.h
Go to the documentation of this file.
1/*****************************************************************/
8#pragma once
9#include "TableExtractor.h"
10
12{
13private:
14 TableExtractor * const _extractor = nullptr;
15
16public:
18 : _extractor(extractor)
19 {
20 if (_extractor == nullptr)
21 {
22 throw std::logic_error("Nullptr not supported");
23 }
24 };
25
26 uint64_t CountColumns();
27 uint64_t CountRows();
28 int CountUniquesInColumn(int column);
29 std::vector<uint64_t> CountUniquesInColumns();
30};
API for creating a Table entity from any source. The task of this class is only the extraction of sin...
Definition TableExtractor.h:15
Definition TableStatisticAnalyser.h:12
std::vector< uint64_t > CountUniquesInColumns()
Definition TableStatisticAnalyser.cpp:51
int CountUniquesInColumn(int column)
Definition TableStatisticAnalyser.cpp:35
uint64_t CountRows()
Definition TableStatisticAnalyser.cpp:21
TableStatisticAnalyser(TableExtractor *extractor)
Definition TableStatisticAnalyser.h:17
uint64_t CountColumns()
Definition TableStatisticAnalyser.cpp:4