0.9.8.10
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
Public Member Functions | Private Attributes | List of all members
Hypertable::HqlCommandInterpreter Class Reference

HQL command interpreter. More...

#include <HqlCommandInterpreter.h>

Inheritance diagram for Hypertable::HqlCommandInterpreter:
Inheritance graph
[legend]
Collaboration diagram for Hypertable::HqlCommandInterpreter:
Collaboration graph
[legend]

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
 

Detailed Description

HQL command interpreter.

Definition at line 42 of file HqlCommandInterpreter.h.

Constructor & Destructor Documentation

HqlCommandInterpreter::HqlCommandInterpreter ( Client client,
bool  profile = false 
)

Constructor.

Parameters
clientHypertable client object
profileFlag 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.

Member Function Documentation

int HqlCommandInterpreter::execute_line ( const std::string &  line)
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.

Parameters
lineHQL command to execute
Returns
Command return code

Implements Hypertable::CommandInterpreter.

Definition at line 183 of file HqlCommandInterpreter.cc.

Member Data Documentation

HqlInterpreterPtr Hypertable::HqlCommandInterpreter::m_interp
private

HQL interpreter.

Definition at line 66 of file HqlCommandInterpreter.h.

bool Hypertable::HqlCommandInterpreter::m_profile {}
private

Flag indicating if SELECT commands should be profiled.

Definition at line 69 of file HqlCommandInterpreter.h.


The documentation for this class was generated from the following files: