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

The API of HQL interpreter. More...

#include <HqlInterpreter.h>

Collaboration diagram for Hypertable::HqlInterpreter:
Collaboration graph
[legend]

Classes

struct  Callback
 Callback interface/base class for execute. More...
 
struct  SmallCallback
 An example for simple queries that returns small number of results. More...
 

Public Member Functions

 HqlInterpreter (Client *client, ConnectionManagerPtr &conn_mgr, bool immutable_namespace=true)
 Construct from hypertable client. More...
 
int execute (const std::string &str, Callback &)
 The main interface for the interpreter. More...
 
int execute (const std::string &str, CellsBuilder &output, std::vector< String > &ret)
 A convenient method demonstrate the usage of the interface. More...
 
int execute (const std::string &cmd)
 More convenient method for admin commands (create/drop table etc.) More...
 
void set_namespace (const std::string &ns)
 

Private Attributes

Clientm_client
 
NamespacePtr m_namespace
 
uint32_t m_mutator_flags
 
ConnectionManagerPtr m_conn_manager
 
FsBroker::Lib::ClientPtr m_fs_client
 
bool m_immutable_namespace
 

Detailed Description

The API of HQL interpreter.

Definition at line 47 of file HqlInterpreter.h.

Constructor & Destructor Documentation

HqlInterpreter::HqlInterpreter ( Client client,
ConnectionManagerPtr conn_mgr,
bool  immutable_namespace = true 
)

Construct from hypertable client.

Definition at line 954 of file HqlInterpreter.cc.

Member Function Documentation

int HqlInterpreter::execute ( const std::string &  str,
Callback cb 
)

The main interface for the interpreter.

Definition at line 969 of file HqlInterpreter.cc.

int Hypertable::HqlInterpreter::execute ( const std::string &  str,
CellsBuilder output,
std::vector< String > &  ret 
)
inline

A convenient method demonstrate the usage of the interface.

Definition at line 129 of file HqlInterpreter.h.

int Hypertable::HqlInterpreter::execute ( const std::string &  cmd)
inline

More convenient method for admin commands (create/drop table etc.)

Definition at line 135 of file HqlInterpreter.h.

void HqlInterpreter::set_namespace ( const std::string &  ns)

Definition at line 962 of file HqlInterpreter.cc.

Member Data Documentation

Client* Hypertable::HqlInterpreter::m_client
private

Definition at line 144 of file HqlInterpreter.h.

ConnectionManagerPtr Hypertable::HqlInterpreter::m_conn_manager
private

Definition at line 147 of file HqlInterpreter.h.

FsBroker::Lib::ClientPtr Hypertable::HqlInterpreter::m_fs_client
private

Definition at line 148 of file HqlInterpreter.h.

bool Hypertable::HqlInterpreter::m_immutable_namespace
private

Definition at line 149 of file HqlInterpreter.h.

uint32_t Hypertable::HqlInterpreter::m_mutator_flags
private

Definition at line 146 of file HqlInterpreter.h.

NamespacePtr Hypertable::HqlInterpreter::m_namespace
private

Definition at line 145 of file HqlInterpreter.h.


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