hybridse::vm::Window

#include <mem_catalog.h>

Summary

Public Types

Name

WindowFrameType { kFrameRows, kFrameRowsRange, kFrameRowsMergeRowsRange}

enum

Public functions

GetIterator() override

std::unique_ptr< RowIterator > Return the const iterator.

RowIterator * Return the const iterator raw pointer.

BufferData(uint64_t key, const Row & row) =0

bool

void

const uint64_t Returns the number of elements in this list.

At(uint64_t pos)

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

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

const bool

void

const bool

set_exclude_current_time(const bool flag)

void

Inherited members

Inherited by hybridse::vm::HistoryWindow

Inherited from hybridse::vm::MemTimeTableHandler

Inherited Public functions

MemTimeTableHandler(const Schema * schema)

MemTimeTableHandler(const std::string & table_name, const std::string & db, const Schema * schema)

GetTypes() override

const Types & Return table column Types information.

const Schema * Return table schema.

const std::string & Return table name.

const IndexHint & Return the index information.

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

GetWindowIterator(const std::string & idx_name)

std::unique_ptr< WindowIterator >

AddRow(const uint64_t key, const Row & v)

void

AddFrontRow(const uint64_t key, const Row & v)

void

const std::pair< uint64_t, Row > &

const std::pair< uint64_t, Row > &

Sort(const bool is_asc)

void

void

SetOrderType(const OrderType order_type)

void

GetOrderType() const

const OrderType

Inherited protected attributes

const std::string

const std::string

const Schema *

Inherited from hybridse::vm::TableHandler

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

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

const HandlerType Return the type of DataHandler.

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

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

Inherited Public functions

Public Types

enum WindowFrameType

Enumerator
Value
Description

kFrameRows

kFrameRowsRange

kFrameRowsMergeRowsRange

Public Functions

function Window

inline Window()

function ~Window

inline virtual ~Window()

function GetIterator

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

Return the const iterator.

Reimplements: hybridse::vm::MemTimeTableHandler::GetIterator

function GetRawIterator

inline virtual RowIterator * GetRawIterator()

Return the const iterator raw pointer.

Reimplements: hybridse::vm::MemTimeTableHandler::GetRawIterator

function BufferData

virtual bool BufferData(
    uint64_t key,
    const Row & row
) =0

Reimplemented by: hybridse::vm::HistoryWindow::BufferData, hybridse::vm::CurrentHistoryWindow::BufferData

function PopBackData

inline virtual void PopBackData()

function PopFrontData

virtual void PopFrontData() =0

Reimplemented by: hybridse::vm::HistoryWindow::PopFrontData, hybridse::vm::CurrentHistoryWindow::PopFrontData

function GetCount

inline virtual const uint64_t GetCount()

Returns the number of elements in this list.

Reimplements: hybridse::vm::MemTimeTableHandler::GetCount

It count element by traverse the list

function At

inline virtual Row At(
    uint64_t pos
)

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

Parameters:

  • pos is element position in the list

Reimplements: hybridse::vm::MemTimeTableHandler::At

function GetHandlerTypeName

inline virtual const std::string GetHandlerTypeName() override

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

Reimplements: hybridse::vm::MemTimeTableHandler::GetHandlerTypeName

function instance_not_in_window

inline const bool instance_not_in_window() const

function set_instance_not_in_window

inline void set_instance_not_in_window(
    const bool flag
)

function exclude_current_time

inline const bool exclude_current_time() const

function set_exclude_current_time

inline void set_exclude_current_time(
    const bool flag
)

Protected Attributes

variable exclude_current_time_

bool exclude_current_time_;

variable instance_not_in_window_

bool instance_not_in_window_;

Last updated