hybridse::vm::Window
#include <mem_catalog.h>
Summary
Public Types
WindowFrameType { kFrameRows, kFrameRowsRange, kFrameRowsMergeRowsRange}
enum
Window()
~Window()
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
PopFrontData() =0
void
GetCount()
const uint64_t Returns the number of elements in this list.
GetHandlerTypeName() override
const std::string Return the name of handler and return "TableHandler" by default.
instance_not_in_window() const
const bool
set_instance_not_in_window(const bool flag)
void
exclude_current_time() const
const bool
set_exclude_current_time(const bool flag)
void
Inherited members
Inherited by hybridse::vm::HistoryWindow
Inherited from hybridse::vm::MemTimeTableHandler
MemTimeTableHandler(const Schema * schema)
MemTimeTableHandler(const std::string & table_name, const std::string & db, const Schema * schema)
~MemTimeTableHandler() override
const Schema * Return table schema.
GetName()
const std::string & Return table name.
const std::string & Return the name of database.
GetWindowIterator(const std::string & idx_name)
std::unique_ptr< WindowIterator >
AddFrontRow(const uint64_t key, const Row & v)
void
void
void
const std::pair< uint64_t, Row > &
const std::pair< uint64_t, Row > &
Sort(const bool is_asc)
void
Reverse()
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
GetWindowIterator(const std::string & idx_name) =0
std::unique_ptr< WindowIterator >
GetHanlderType() override
const HandlerType
GetPartition(const std::string & index_name)
std::shared_ptr< PartitionHandler >
GetOrderType() const
const OrderType
Inherited from hybridse::vm::DataHandler
GetSchema() =0
const Schema * Return table schema.
GetName() =0
const std::string & Return table name.
GetDatabase() =0
const std::string & Return the name of database.
GetHanlderType() =0
const HandlerType Return the type of DataHandler.
base::Status Return dataset status. Default is hybridse::common::kOk.
Inherited from hybridse::codec::ListV< Row >
Public Types
enum WindowFrameType
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