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

function ~PartitionHandler

function GetIterator

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

Return the iterator of row iterator. Return null by default

function GetRawIterator

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

Return the iterator of row iterator Return null by default

function GetWindowIterator

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

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

function GetWindowIterator

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

Return WindowIterator to iterate datasets segment-by-segment.

function GetHanlderType

Return HandlerType::kPartitionHandler by default.

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

function At

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

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

function GetSegment

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

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

function GetSegments

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

function GetHandlerTypeName

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

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

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

function GetOrderType

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

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

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

Last updated