HQL command interpreter. More...
#include <HqlCommandInterpreter.h>
Public Member Functions | |
HqlCommandInterpreter (Client *client, bool profile=false) | |
Constructor. More... | |
HqlCommandInterpreter (HqlInterpreter *interp) | |
Constructor. More... | |
int | execute_line (const std::string &line) override |
Executes an HQL command. More... | |
Public Member Functions inherited from Hypertable::CommandInterpreter | |
CommandInterpreter () | |
void | set_timestamp_output_format (const String &format) |
void | set_silent (bool silent) |
void | set_test_mode (bool mode) |
void | set_interactive_mode (bool mode) |
bool | silent_mode () |
bool | test_mode () |
bool | normal_mode () |
int | timestamp_output_format () |
Private Attributes | |
HqlInterpreterPtr | m_interp |
HQL interpreter. More... | |
bool | m_profile {} |
Flag indicating if SELECT commands should be profiled. More... | |
Additional Inherited Members | |
Public Types inherited from Hypertable::CommandInterpreter | |
enum | { TIMESTAMP_FORMAT_DEFAULT, TIMESTAMP_FORMAT_NANOS } |
Protected Attributes inherited from Hypertable::CommandInterpreter | |
int | m_timestamp_output_format |
bool | m_silent |
bool | m_test_mode |
bool | m_interactive |
HQL command interpreter.
Definition at line 42 of file HqlCommandInterpreter.h.
HqlCommandInterpreter::HqlCommandInterpreter | ( | Client * | client, |
bool | profile = false |
||
) |
Constructor.
client | Hypertable client object |
profile | Flag indicating that scan queries should be profiled |
Definition at line 173 of file HqlCommandInterpreter.cc.
HqlCommandInterpreter::HqlCommandInterpreter | ( | HqlInterpreter * | interp | ) |
Constructor.
Definition at line 178 of file HqlCommandInterpreter.cc.
|
overridevirtual |
Executes an HQL command.
Executes an HQL command provided in line
. For write commands, a progress meter is used to report progress to stdout and statistics are reported to stderr when finished. If constructed with the profile flag, then profile information is reported to stderr when SELECT queries are issued.
line | HQL command to execute |
Implements Hypertable::CommandInterpreter.
Definition at line 183 of file HqlCommandInterpreter.cc.
|
private |
HQL interpreter.
Definition at line 66 of file HqlCommandInterpreter.h.
|
private |
Flag indicating if SELECT commands should be profiled.
Definition at line 69 of file HqlCommandInterpreter.h.