-
Notifications
You must be signed in to change notification settings - Fork 154
Expand file tree
/
Copy pathLoadExecutor.h
More file actions
41 lines (37 loc) · 1.25 KB
/
LoadExecutor.h
File metadata and controls
41 lines (37 loc) · 1.25 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
/*
* Copyright 2024 PixelsDB.
*
* This file is part of Pixels.
*
* Pixels is free software: you can redistribute it and/or modify
* it under the terms of the Affero GNU General Public License as
* published by the Free Software Foundation, either version 3 of
* the License, or (at your option) any later version.
*
* Pixels is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* Affero GNU General Public License for more details.
*
* You should have received a copy of the Affero GNU General Public
* License along with Pixels. If not, see
* <https://www.gnu.org/licenses/>.
*/
/*
* @author gengdy
* @create 2024-11-17
*/
#ifndef PIXELS_LOADEXECUTOR_H
#define PIXELS_LOADEXECUTOR_H
#include <executor/CommandExecutor.h>
#include <vector>
#include <load/Parameters.h>
class LoadExecutor : public CommandExecutor
{
public:
void execute(const bpo::variables_map &ns, const std::string &command) override;
private:
bool startConsumers(const std::vector <std::string> &inputFiles, Parameters parameters,
const std::vector <std::string> &loadedFiles, int concurrency);
};
#endif //PIXELS_LOADEXECUTOR_H