0.9.8.10
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
HqlCommandInterpreter.h
Go to the documentation of this file.
1 /* -*- c++ -*-
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; version 3 of the
9  * 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 
26 
27 #ifndef Hypertable_Lib_HqlCommandInterpreter_h
28 #define Hypertable_Lib_HqlCommandInterpreter_h
29 
31 
33 
34 namespace Hypertable {
35 
36  class Client;
37 
40 
43  public:
44 
48  HqlCommandInterpreter(Client *client, bool profile=false);
49 
52 
61  int execute_line(const std::string &line) override;
62 
63  private:
64 
67 
69  bool m_profile {};
70  };
71 
73 
74 }
75 
76 #endif // Hypertable_Lib_HqlCommandInterpreter_h
bool m_profile
Flag indicating if SELECT commands should be profiled.
int execute_line(const std::string &line) override
Executes an HQL command.
The API of HQL interpreter.
Hypertable definitions
std::shared_ptr< HqlInterpreter > HqlInterpreterPtr
Smart pointer to HqlInterpreter.
HqlCommandInterpreter(Client *client, bool profile=false)
Constructor.
HqlInterpreterPtr m_interp
HQL interpreter.