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::SmallCallback Struct Reference

An example for simple queries that returns small number of results. More...

#include <HqlInterpreter.h>

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

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

CellsBuildercells
 
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
 

Detailed Description

An example for simple queries that returns small number of results.

Definition at line 109 of file HqlInterpreter.h.

Constructor & Destructor Documentation

Hypertable::HqlInterpreter::SmallCallback::SmallCallback ( CellsBuilder builder,
std::vector< String > &  strs 
)
inline

Definition at line 113 of file HqlInterpreter.h.

Member Function Documentation

void Hypertable::HqlInterpreter::SmallCallback::on_dump ( TableDumper )
inlineoverridevirtual

Called when interpreter is ready to dump.

Reimplemented from Hypertable::HqlInterpreter::Callback.

Definition at line 118 of file HqlInterpreter.h.

void Hypertable::HqlInterpreter::SmallCallback::on_return ( const std::string &  )
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.

void Hypertable::HqlInterpreter::SmallCallback::on_scan ( TableScannerPtr )
inlineoverridevirtual

Called when interpreter is ready to scan.

Reimplemented from Hypertable::HqlInterpreter::Callback.

Definition at line 117 of file HqlInterpreter.h.

Member Data Documentation

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.


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