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.

Public functions

LocalTablet(hybridse::vm::Engine * engine, std::shared_ptr< hybridse::vm::CompileInfoCache > sp_cache)

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

std::shared_ptr< RowHandler >

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)

std::shared_ptr< TableHandler >

GetName() const

const std::string & Return the name of tablet.

Inherited members

Inherited from hybridse::vm::Tablet

Inherited Public functions

Public Functions

function LocalTablet

function ~LocalTablet

function SubQuery

Parameters:

  • task_id id of task

  • db name of database

  • sql represents a sql string if is_procedure is ture, or represents a procedure name

  • row 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

Parameters:

  • task_id id of task

  • db name of database

  • sql represents a sql string if is_procedure is ture, or represents a procedure name

  • common_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

Return the name of tablet.

Reimplements: hybridse::vm::Tablet::GetName

Last updated