hybridse::vm::PartitionHandler

#include <catalog.h>

The abstraction of partition dataset operation.

Summary

class hybridse::vm::PartitionHandler;

The abstraction of partition dataset operation.

A partition dataset is always organized by segments +– key1 --> segment1 partition –+– key2 --> segment2 +– key3 --> segment3

Public functions

std::unique_ptr< RowIterator >

RowIterator *

GetWindowIterator(const std::string & idx_name)

std::unique_ptr< WindowIterator >

std::unique_ptr< WindowIterator >

GetHanlderType() override

const HandlerType Return HandlerType::kPartitionHandler by default.

At(uint64_t pos)

Row Return empty row, cause partition dataset does not support At operation.

GetSegment(const std::string & key)

std::shared_ptr< TableHandler >

GetSegments(const std::vector< std::string > & keys)

std::vector< std::shared_ptr< TableHandler > >

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

GetOrderType() const

const OrderType

Inherited members

Inherited by hybridse::vm::MemPartitionHandler

Inherited from hybridse::vm::TableHandler

Inherited Public functions

const Types & Return table column Types information.

const IndexHint & Return the index information.

GetPartition(const std::string & index_name)

std::shared_ptr< PartitionHandler >

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

const uint64_t Returns the number of elements in this list.

Public Functions

function PartitionHandler

inline PartitionHandler()

function ~PartitionHandler

inline ~PartitionHandler()

function GetIterator

inline virtual std::unique_ptr< RowIterator > GetIterator()

Reimplements: hybridse::codec::ListV::GetIterator

Return the iterator of row iterator. Return null by default

function GetRawIterator

inline virtual RowIterator * GetRawIterator()

Reimplements: hybridse::codec::ListV::GetRawIterator

Return the iterator of row iterator Return null by default

function GetWindowIterator

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

Reimplements: hybridse::vm::TableHandler::GetWindowIterator

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

function GetWindowIterator

virtual std::unique_ptr< WindowIterator > GetWindowIterator() =0

Reimplemented by: hybridse::vm::MemPartitionHandler::GetWindowIterator

Return WindowIterator to iterate datasets segment-by-segment.

function GetHanlderType

inline virtual const HandlerType GetHanlderType() override

Return HandlerType::kPartitionHandler by default.

Reimplements: hybridse::vm::TableHandler::GetHanlderType

function At

inline virtual Row At(
    uint64_t pos
)

Return empty row, cause partition dataset does not support At operation.

Reimplements: hybridse::codec::ListV::At

function GetSegment

inline virtual std::shared_ptr< TableHandler > GetSegment(
    const std::string & key
)

Reimplemented by: hybridse::vm::MemPartitionHandler::GetSegment

Return Return table handler of specific segment binding to given key. Return null by default.

function GetSegments

inline virtual std::vector< std::shared_ptr< TableHandler > > GetSegments(
    const std::vector< std::string > & keys
)

Return a sequence of table handles of specify segments binding to given keys set.

function GetHandlerTypeName

inline virtual const std::string GetHandlerTypeName() override

Return the name of handler, and return "PartitionHandler" by default.

Reimplements: hybridse::vm::TableHandler::GetHandlerTypeName

Reimplemented by: hybridse::vm::MemPartitionHandler::GetHandlerTypeName

function GetOrderType

inline virtual const OrderType GetOrderType() const

Reimplements: hybridse::vm::TableHandler::GetOrderType

Reimplemented by: hybridse::vm::MemPartitionHandler::GetOrderType

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

Last updated