0.9.8.10
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
QueryThread.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2007-2015 Hypertable, Inc.
3  *
4  * This file is part of Hypertable.
5  *
6  * Hypertable is free software; you can redistribute it and/or
7  * modify it under the terms of the GNU General Public License
8  * as published by the Free Software Foundation; either version 3
9  * of the License, or any later version.
10  *
11  * Hypertable is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14  * GNU General Public License for more details.
15  *
16  * You should have received a copy of the GNU General Public License
17  * along with this program; if not, write to the Free Software
18  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
19  * 02110-1301, USA.
20  */
21 
22 #ifndef Tools_load_generator_QueryThread_h
23 #define Tools_load_generator_QueryThread_h
24 
25 #include "LoadClient.h"
26 #include "ParallelLoad.h"
27 
28 #include <Hypertable/Lib/Table.h>
30 
31 #include <boost/progress.hpp>
32 
33 #include <vector>
34 
35 namespace Hypertable {
36 
37  class QueryThread {
38 
39  public:
41  boost::progress_display *progress, ParallelStateRec &state)
42  : m_props(props), m_table(table), m_progress(progress), m_state(state) {
43  }
44 
45  void operator()();
46 
47  private:
50  boost::progress_display *m_progress;
52  };
53 
54 }
55 
56 #endif // Tools_load_generator_QueryThread_h
QueryThread(PropertiesPtr &props, TablePtr &table, boost::progress_display *progress, ParallelStateRec &state)
Definition: QueryThread.h:40
PropertiesPtr m_props
Definition: QueryThread.h:48
std::shared_ptr< Properties > PropertiesPtr
Definition: Properties.h:447
Hypertable definitions
boost::progress_display * m_progress
Definition: QueryThread.h:50
ParallelStateRec & m_state
Definition: QueryThread.h:51
std::shared_ptr< Table > TablePtr
Definition: Table.h:53