An example for simple queries that returns small number of results. More...
#include <HqlInterpreter.h>
Public Member Functions | |
SmallCallback (CellsBuilder &builder, std::vector< String > &strs) | |
void | on_return (const std::string &ret) override |
Called when interpreter returns a string result Maybe called multiple times for a list of string results. More... | |
void | on_scan (TableScannerPtr &scanner) override |
Called when interpreter is ready to scan. More... | |
void | on_dump (TableDumper &dumper) override |
Called when interpreter is ready to dump. 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_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 | |
CellsBuilder & | cells |
std::vector< String > & | retstrs |
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 |
An example for simple queries that returns small number of results.
Definition at line 109 of file HqlInterpreter.h.
|
inline |
Definition at line 113 of file HqlInterpreter.h.
|
inlineoverridevirtual |
Called when interpreter is ready to dump.
Reimplemented from Hypertable::HqlInterpreter::Callback.
Definition at line 118 of file HqlInterpreter.h.
|
inlineoverridevirtual |
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 116 of file HqlInterpreter.h.
|
inlineoverridevirtual |
Called when interpreter is ready to scan.
Reimplemented from Hypertable::HqlInterpreter::Callback.
Definition at line 117 of file HqlInterpreter.h.
CellsBuilder& Hypertable::HqlInterpreter::SmallCallback::cells |
Definition at line 110 of file HqlInterpreter.h.
std::vector<String>& Hypertable::HqlInterpreter::SmallCallback::retstrs |
Definition at line 111 of file HqlInterpreter.h.