mutable
A Database System for Research and Fast Prototyping
Loading...
Searching...
No Matches
Public Member Functions | Protected Member Functions | Private Attributes
m::Store Struct Referenceabstract

Defines a generic store interface. More...

#include <Store.hpp>

Inheritance diagram for m::Store:
[legend]
Collaboration diagram for m::Store:
[legend]

Public Member Functions

 Store (const Store &)=delete
 
 Store (Store &&)=default
 
virtual ~Store ()
 
const Tabletable () const
 
virtual const memory::Memorymemory () const =0
 Returns the memory corresponding to the Linearization's root node.
 
virtual std::size_t num_rows () const =0
 Return the number of rows in this store.
 
virtual void append ()=0
 Append a row to the store.
 
virtual void drop ()=0
 Drop the most recently appended row.
 
virtual void dump (std::ostream &out) const =0
 
void dump () const
 

Protected Member Functions

 Store (const Table &table)
 

Private Attributes

const Tabletable_
 the table defining this store's schema
 

Detailed Description

Defines a generic store interface.

Definition at line 21 of file Store.hpp.

Constructor & Destructor Documentation

◆ Store() [1/3]

m::Store::Store ( const Table table)
inlineprotected

Definition at line 27 of file Store.hpp.

◆ Store() [2/3]

m::Store::Store ( const Store )
delete

◆ Store() [3/3]

m::Store::Store ( Store &&  )
default

◆ ~Store()

virtual m::Store::~Store ( )
inlinevirtual

Definition at line 34 of file Store.hpp.

Member Function Documentation

◆ append()

virtual void m::Store::append ( )
pure virtual

Append a row to the store.

Implemented in m::ColumnStore, m::PaxStore, and m::RowStore.

◆ drop()

virtual void m::Store::drop ( )
pure virtual

Drop the most recently appended row.

Implemented in m::ColumnStore, m::PaxStore, and m::RowStore.

◆ dump() [1/2]

M_LCOV_EXCL_START void Store::dump ( ) const

Definition at line 14 of file Store.cpp.

References dump().

Referenced by dump().

◆ dump() [2/2]

virtual void m::Store::dump ( std::ostream &  out) const
pure virtual

◆ memory()

virtual const memory::Memory & m::Store::memory ( ) const
pure virtual

Returns the memory corresponding to the Linearization's root node.

Implemented in m::ColumnStore, m::PaxStore, and m::RowStore.

Referenced by m::WasmEngine::WasmContext::map_table().

◆ num_rows()

virtual std::size_t m::Store::num_rows ( ) const
pure virtual

Return the number of rows in this store.

Implemented in m::ColumnStore, m::PaxStore, and m::RowStore.

Referenced by m::WasmEngine::WasmContext::map_table().

◆ table()

const Table & m::Store::table ( ) const
inline

Field Documentation

◆ table_

const Table& m::Store::table_
private

the table defining this store's schema

Definition at line 24 of file Store.hpp.


The documentation for this struct was generated from the following files: