Callback interface/base class for execute. More...
#include <HqlInterpreter.h>
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 |
Callback interface/base class for execute.
Definition at line 50 of file HqlInterpreter.h.
|
inline |
Definition at line 60 of file HqlInterpreter.h.
|
inlinevirtual |
Definition at line 63 of file HqlInterpreter.h.
|
inlinevirtual |
Called when interpreter is ready to dump.
Reimplemented in Hypertable::HqlInterpreter::SmallCallback.
Definition at line 77 of file HqlInterpreter.h.
|
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.
|
inlinevirtual |
Definition at line 101 of file HqlInterpreter.h.
|
inlinevirtual |
Called when scan is finished.
Definition at line 104 of file HqlInterpreter.h.
|
inlinevirtual |
Called when the hql string is parsed successfully.
Definition at line 66 of file HqlInterpreter.h.
|
inlinevirtual |
Called when interpreter updates progress for long running queries.
Definition at line 83 of file HqlInterpreter.h.
|
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.
|
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.
|
inlinevirtual |
Called when interpreter is ready to update.
Definition at line 80 of file HqlInterpreter.h.
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.