hybridse::vm::LocalTablet
#include <engine.h>
Local tablet is responsible to run a task locally.
Summary
class hybridse::vm::LocalTablet;
Local tablet is responsible to run a task locally.
Local tablet won't invoke rpc to run a task remotely.
LocalTablet(hybridse::vm::Engine * engine, std::shared_ptr< hybridse::vm::CompileInfoCache > sp_cache)
std::shared_ptr< RowHandler >
std::shared_ptr< TableHandler >
GetName() const
const std::string & Return the name of tablet.
Inherited members
Inherited from hybridse::vm::Tablet
Public Functions
function LocalTablet
inline explicit LocalTablet(
hybridse::vm::Engine * engine,
std::shared_ptr< hybridse::vm::CompileInfoCache > sp_cache
)
function ~LocalTablet
inline ~LocalTablet()
function SubQuery
virtual std::shared_ptr< RowHandler > SubQuery(
uint32_t task_id,
const std::string & db,
const std::string & sql,
const Row & row,
const bool is_procedure,
const bool is_debug
) override
Parameters:
task_id id of task
db name of database
sql represents a sql string if
is_procedure
is ture, or represents a procedure namerow request row
is_procedure whether sql is a procedure or not
is_debug whether printing debug information while running
Return: Return query result row as RowHandler pointer
Reimplements: hybridse::vm::Tablet::SubQuery
Run a task in request mode locally
function SubQuery
virtual std::shared_ptr< TableHandler > SubQuery(
uint32_t task_id,
const std::string & db,
const std::string & sql,
const std::set< size_t > & common_column_indices,
const std::vector< Row > & in_rows,
const bool request_is_common,
const bool is_procedure,
const bool is_debug
)
Parameters:
task_id id of task
db name of database
sql represents a sql string if
is_procedure
is ture, or represents a procedure namecommon_column_indices a set of common column indices
in_rows a batch of request rows
request_is_common whether request is common or not
is_procedure whether run procedure or not
is_debug whether printing debug information while running
Return: Return query result rows as TableHandler pointer
Reimplements: hybridse::vm::Tablet::SubQuery
Run a task in batch-request mode locally
function GetName
inline virtual const std::string & GetName() const
Return the name of tablet.
Reimplements: hybridse::vm::Tablet::GetName
Last updated