0.9.8.10
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
Public Types | Public Member Functions | Public Attributes | List of all members
Hypertable::ThriftBroker::HqlCallback< ResultT, CellT > Struct Template Reference
Inheritance diagram for Hypertable::ThriftBroker::HqlCallback< ResultT, CellT >:
Inheritance graph
[legend]
Collaboration diagram for Hypertable::ThriftBroker::HqlCallback< ResultT, CellT >:
Collaboration graph
[legend]

Public Types

typedef HqlInterpreter::Callback Parent
 

Public Member Functions

 HqlCallback (ResultT &r, ServerHandler *handler, const ThriftGen::Namespace ns, const String &hql, bool flush, bool buffered)
 
void on_return (const std::string &) override
 Called when interpreter returns a string result Maybe called multiple times for a list of string results. More...
 
void on_scan (TableScannerPtr &) override
 Called when interpreter is ready to scan. More...
 
void on_finish (TableMutatorPtr &) override
 Called when interpreter is finished Note: mutator pointer maybe NULL in case of things like LOAD DATA ... More...
 
- Public Member Functions inherited from Hypertable::HqlInterpreter::Callback
 Callback (bool normal=true)
 
virtual ~Callback ()
 
virtual void on_parsed (Hql::ParserState &)
 Called when the hql string is parsed successfully. More...
 
virtual void on_dump (TableDumper &)
 Called when interpreter is ready to dump. More...
 
virtual void on_update (size_t total)
 Called when interpreter is ready to update. More...
 
virtual void on_progress (size_t amount)
 Called when interpreter updates progress for long running queries. More...
 
virtual void on_finish ()
 
virtual void on_finish (TableScannerPtr &scanner)
 Called when scan is finished. More...
 

Public Attributes

ResultT & result
 
ServerHandlerhandler
 
ProfileDataScanner profile_data
 
int64_t ns {}
 
string hql
 
bool flush
 
bool buffered
 
bool is_scan {}
 
- Public Attributes inherited from Hypertable::HqlInterpreter::Callback
FILE * output
 
bool normal_mode
 
bool format_ts_in_nanos
 
uint64_t total_cells
 
uint64_t total_keys_size
 
uint64_t total_values_size
 
uint64_t file_size
 

Detailed Description

template<class ResultT, class CellT>
struct Hypertable::ThriftBroker::HqlCallback< ResultT, CellT >

Definition at line 894 of file ThriftBroker.cc.

Member Typedef Documentation

template<class ResultT, class CellT>
typedef HqlInterpreter::Callback Hypertable::ThriftBroker::HqlCallback< ResultT, CellT >::Parent

Definition at line 895 of file ThriftBroker.cc.

Constructor & Destructor Documentation

template<class ResultT, class CellT>
Hypertable::ThriftBroker::HqlCallback< ResultT, CellT >::HqlCallback ( ResultT &  r,
ServerHandler handler,
const ThriftGen::Namespace  ns,
const String hql,
bool  flush,
bool  buffered 
)
inline

Definition at line 905 of file ThriftBroker.cc.

Member Function Documentation

template<class ResultT , class CellT >
void Hypertable::ThriftBroker::HqlCallback< ResultT, CellT >::on_finish ( TableMutatorPtr mutator)
overridevirtual

Called when interpreter is finished Note: mutator pointer maybe NULL in case of things like LOAD DATA ...

INTO file

Reimplemented from Hypertable::HqlInterpreter::Callback.

Definition at line 3044 of file ThriftBroker.cc.

template<class ResultT , class CellT >
void Hypertable::ThriftBroker::HqlCallback< ResultT, CellT >::on_return ( const std::string &  )
overridevirtual

Called when interpreter returns a string result Maybe called multiple times for a list of string results.

Reimplemented from Hypertable::HqlInterpreter::Callback.

Definition at line 3013 of file ThriftBroker.cc.

template<class ResultT , class CellT >
void Hypertable::ThriftBroker::HqlCallback< ResultT, CellT >::on_scan ( TableScannerPtr )
overridevirtual

Called when interpreter is ready to scan.

Reimplemented from Hypertable::HqlInterpreter::Callback.

Definition at line 3019 of file ThriftBroker.cc.

Member Data Documentation

template<class ResultT, class CellT>
bool Hypertable::ThriftBroker::HqlCallback< ResultT, CellT >::buffered

Definition at line 902 of file ThriftBroker.cc.

template<class ResultT, class CellT>
bool Hypertable::ThriftBroker::HqlCallback< ResultT, CellT >::flush

Definition at line 902 of file ThriftBroker.cc.

template<class ResultT, class CellT>
ServerHandler& Hypertable::ThriftBroker::HqlCallback< ResultT, CellT >::handler

Definition at line 898 of file ThriftBroker.cc.

template<class ResultT, class CellT>
string Hypertable::ThriftBroker::HqlCallback< ResultT, CellT >::hql

Definition at line 901 of file ThriftBroker.cc.

template<class ResultT, class CellT>
bool Hypertable::ThriftBroker::HqlCallback< ResultT, CellT >::is_scan {}

Definition at line 903 of file ThriftBroker.cc.

template<class ResultT, class CellT>
int64_t Hypertable::ThriftBroker::HqlCallback< ResultT, CellT >::ns {}

Definition at line 900 of file ThriftBroker.cc.

template<class ResultT, class CellT>
ProfileDataScanner Hypertable::ThriftBroker::HqlCallback< ResultT, CellT >::profile_data

Definition at line 899 of file ThriftBroker.cc.

template<class ResultT, class CellT>
ResultT& Hypertable::ThriftBroker::HqlCallback< ResultT, CellT >::result

Definition at line 897 of file ThriftBroker.cc.


The documentation for this struct was generated from the following file: