hybridse::vm::TableHandler

#include <catalog.h>

A table dataset operation abstraction.

Summary

Public functions

const Types & Return table column Types information.

const IndexHint & Return the index information.

GetWindowIterator(const std::string & idx_name) =0

std::unique_ptr< WindowIterator >

GetHanlderType() override

GetPartition(const std::string & index_name)

std::shared_ptr< PartitionHandler >

const std::string Return the name of handler and return "TableHandler" by default.

GetOrderType() const

const OrderType

GetTablet(const std::string & index_name, const std::string & pk)

std::shared_ptr< Tablet >

GetTablet(const std::string & index_name, const std::vector< std::string > & pks)

std::shared_ptr< Tablet >

Inherited members

Inherited by hybridse::vm::ErrorTableHandler, hybridse::vm::MemSegmentHandler, hybridse::vm::MemTableHandler, hybridse::vm::MemTimeTableHandler, hybridse::vm::PartitionHandler, hybridse::vm::RequestUnionTableHandler

Inherited from hybridse::vm::DataHandler

Inherited Public functions

const Schema * Return table schema.

GetName() =0

const std::string & Return table name.

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

base::Status Return dataset status. Default is hybridse::common::kOk.

Inherited from hybridse::codec::ListV< Row >

Inherited Public functions

std::unique_ptr< ConstIterator< uint64_t, V > > Return the const iterator.

ConstIterator< uint64_t, V > * Return the const iterator raw pointer.

const uint64_t Returns the number of elements in this list.

At(uint64_t pos)

V Return a the value of element by its position in the list.

Public Functions

function TableHandler

inline TableHandler()

function ~TableHandler

inline virtual ~TableHandler()

function GetTypes

virtual const Types & GetTypes() =0

Return table column Types information.

Reimplemented by: hybridse::vm::MemSegmentHandler::GetTypes, hybridse::vm::ErrorTableHandler::GetTypes, hybridse::vm::MemTableHandler::GetTypes, hybridse::vm::MemTimeTableHandler::GetTypes, hybridse::vm::MemPartitionHandler::GetTypes, hybridse::vm::RequestUnionTableHandler::GetTypes

function GetIndex

virtual const IndexHint & GetIndex() =0

Return the index information.

Reimplemented by: hybridse::vm::MemTableHandler::GetIndex, hybridse::vm::MemTimeTableHandler::GetIndex, hybridse::vm::MemSegmentHandler::GetIndex, hybridse::vm::ErrorTableHandler::GetIndex, hybridse::vm::MemPartitionHandler::GetIndex, hybridse::vm::RequestUnionTableHandler::GetIndex

function GetWindowIterator

virtual std::unique_ptr< WindowIterator > GetWindowIterator(
    const std::string & idx_name
) =0

Reimplemented by: hybridse::vm::RequestUnionTableHandler::GetWindowIterator, hybridse::vm::ErrorTableHandler::GetWindowIterator, hybridse::vm::PartitionHandler::GetWindowIterator, hybridse::vm::MemTableHandler::GetWindowIterator, hybridse::vm::MemTimeTableHandler::GetWindowIterator, hybridse::vm::MemSegmentHandler::GetWindowIterator

Return WindowIterator so that user can use it to iterate datasets segment by segment.

function GetHanlderType

inline virtual const HandlerType GetHanlderType() override

Reimplements: hybridse::vm::DataHandler::GetHanlderType

Reimplemented by: hybridse::vm::PartitionHandler::GetHanlderType

Return the HandlerType of the dataset. Return HandlerType::kTableHandler by default

function GetPartition

inline virtual std::shared_ptr< PartitionHandler > GetPartition(
    const std::string & index_name
)

Return partition handler of specify partition binding to given index. Return null by default.

function GetHandlerTypeName

inline virtual const std::string GetHandlerTypeName() override

Return the name of handler and return "TableHandler" by default.

Reimplements: hybridse::vm::DataHandler::GetHandlerTypeName

Reimplemented by: hybridse::vm::ErrorTableHandler::GetHandlerTypeName, hybridse::vm::PartitionHandler::GetHandlerTypeName, hybridse::vm::MemTableHandler::GetHandlerTypeName, hybridse::vm::MemTimeTableHandler::GetHandlerTypeName, hybridse::vm::Window::GetHandlerTypeName, hybridse::vm::MemSegmentHandler::GetHandlerTypeName, hybridse::vm::MemPartitionHandler::GetHandlerTypeName

function GetOrderType

inline virtual const OrderType GetOrderType() const

Reimplemented by: hybridse::vm::PartitionHandler::GetOrderType, hybridse::vm::MemTableHandler::GetOrderType, hybridse::vm::MemTimeTableHandler::GetOrderType, hybridse::vm::MemSegmentHandler::GetOrderType, hybridse::vm::MemPartitionHandler::GetOrderType, hybridse::vm::RequestUnionTableHandler::GetOrderType

Return the order type of the dataset, and return OrderType::kNoneOrder by default.

function GetTablet

inline virtual std::shared_ptr< Tablet > GetTablet(
    const std::string & index_name,
    const std::string & pk
)

Return Tablet binding to specify index and key. Return null by default.

function GetTablet

inline virtual std::shared_ptr< Tablet > GetTablet(
    const std::string & index_name,
    const std::vector< std::string > & pks
)

Return Tablet binding to specify index and keys. Return null by default.

Last updated