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

Callback interface/base class for execute. More...

#include <HqlInterpreter.h>

Inheritance diagram for Hypertable::HqlInterpreter::Callback:
Inheritance graph
[legend]

Public Member Functions

 Callback (bool normal=true)
 
virtual ~Callback ()
 
virtual void on_parsed (Hql::ParserState &)
 Called when the hql string is parsed successfully. More...
 
virtual void on_return (const std::string &)
 Called when interpreter returns a string result Maybe called multiple times for a list of string results. More...
 
virtual void on_scan (TableScannerPtr &)
 Called when interpreter is ready to scan. 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 (TableMutatorPtr &mutator)
 Called when interpreter is finished Note: mutator pointer maybe NULL in case of things like LOAD DATA ... More...
 
virtual void on_finish ()
 
virtual void on_finish (TableScannerPtr &scanner)
 Called when scan is finished. More...
 

Public Attributes

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

Callback interface/base class for execute.

Definition at line 50 of file HqlInterpreter.h.

Constructor & Destructor Documentation

Hypertable::HqlInterpreter::Callback::Callback ( bool  normal = true)
inline

Definition at line 60 of file HqlInterpreter.h.

virtual Hypertable::HqlInterpreter::Callback::~Callback ( )
inlinevirtual

Definition at line 63 of file HqlInterpreter.h.

Member Function Documentation

virtual void Hypertable::HqlInterpreter::Callback::on_dump ( TableDumper )
inlinevirtual

Called when interpreter is ready to dump.

Reimplemented in Hypertable::HqlInterpreter::SmallCallback.

Definition at line 77 of file HqlInterpreter.h.

virtual void Hypertable::HqlInterpreter::Callback::on_finish ( TableMutatorPtr mutator)
inlinevirtual

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

INTO file

Reimplemented in Hypertable::ThriftBroker::HqlCallback< ResultT, CellT >.

Definition at line 89 of file HqlInterpreter.h.

virtual void Hypertable::HqlInterpreter::Callback::on_finish ( )
inlinevirtual

Definition at line 101 of file HqlInterpreter.h.

virtual void Hypertable::HqlInterpreter::Callback::on_finish ( TableScannerPtr scanner)
inlinevirtual

Called when scan is finished.

Definition at line 104 of file HqlInterpreter.h.

virtual void Hypertable::HqlInterpreter::Callback::on_parsed ( Hql::ParserState )
inlinevirtual

Called when the hql string is parsed successfully.

Definition at line 66 of file HqlInterpreter.h.

virtual void Hypertable::HqlInterpreter::Callback::on_progress ( size_t  amount)
inlinevirtual

Called when interpreter updates progress for long running queries.

Definition at line 83 of file HqlInterpreter.h.

virtual void Hypertable::HqlInterpreter::Callback::on_return ( const std::string &  )
inlinevirtual

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

Reimplemented in Hypertable::ThriftBroker::HqlCallback< ResultT, CellT >, and Hypertable::HqlInterpreter::SmallCallback.

Definition at line 71 of file HqlInterpreter.h.

virtual void Hypertable::HqlInterpreter::Callback::on_scan ( TableScannerPtr )
inlinevirtual

Called when interpreter is ready to scan.

Reimplemented in Hypertable::ThriftBroker::HqlCallback< ResultT, CellT >, and Hypertable::HqlInterpreter::SmallCallback.

Definition at line 74 of file HqlInterpreter.h.

virtual void Hypertable::HqlInterpreter::Callback::on_update ( size_t  total)
inlinevirtual

Called when interpreter is ready to update.

Definition at line 80 of file HqlInterpreter.h.

Member Data Documentation

uint64_t Hypertable::HqlInterpreter::Callback::file_size

Definition at line 55 of file HqlInterpreter.h.

bool Hypertable::HqlInterpreter::Callback::format_ts_in_nanos

Definition at line 53 of file HqlInterpreter.h.

bool Hypertable::HqlInterpreter::Callback::normal_mode

Definition at line 52 of file HqlInterpreter.h.

FILE* Hypertable::HqlInterpreter::Callback::output

Definition at line 51 of file HqlInterpreter.h.

uint64_t Hypertable::HqlInterpreter::Callback::total_cells

Definition at line 55 of file HqlInterpreter.h.

uint64_t Hypertable::HqlInterpreter::Callback::total_keys_size

Definition at line 55 of file HqlInterpreter.h.

uint64_t Hypertable::HqlInterpreter::Callback::total_values_size

Definition at line 55 of file HqlInterpreter.h.


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