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

This class provides direct write access to the contents of a Store. More...

#include <mutable.hpp>

Collaboration diagram for m::StoreWriter:
[legend]

Public Member Functions

 StoreWriter (Store &store)
 
 ~StoreWriter ()
 
const Schemaschema () const
 Returns the Schema of Tuples to write.
 
void append (const Tuple &tup) const
 Appends tup to the store.
 

Private Attributes

Storestore_
 the store to access
 
Schema S
 the schema of the tuples to read/write
 
std::unique_ptr< m::StackMachinewriter_
 the writing StackMachine
 
const storage::DataLayoutlayout_ = nullptr
 the last seen DataLayout; used to observe updates
 

Detailed Description

This class provides direct write access to the contents of a Store.


Definition at line 115 of file mutable.hpp.

Constructor & Destructor Documentation

◆ StoreWriter()

m::StoreWriter::StoreWriter ( Store store)

Definition at line 444 of file mutable.cpp.

◆ ~StoreWriter()

m::StoreWriter::~StoreWriter ( )

Definition at line 446 of file mutable.cpp.

Member Function Documentation

◆ append()

void m::StoreWriter::append ( const Tuple tup) const

Appends tup to the store.

Definition at line 448 of file mutable.cpp.

References args, and m::Interpreter::compile_store().

Referenced by m::InsertRecords::execute(), and m::execute_statement().

◆ schema()

const Schema & m::StoreWriter::schema ( ) const
inline

Returns the Schema of Tuples to write.

Definition at line 128 of file mutable.hpp.

Referenced by m::InsertRecords::execute(), and m::execute_statement().

Field Documentation

◆ layout_

const storage::DataLayout* m::StoreWriter::layout_ = nullptr
mutableprivate

the last seen DataLayout; used to observe updates

Definition at line 121 of file mutable.hpp.

◆ S

Schema m::StoreWriter::S
private

the schema of the tuples to read/write

Definition at line 119 of file mutable.hpp.

◆ store_

Store& m::StoreWriter::store_
private

the store to access

Definition at line 118 of file mutable.hpp.

◆ writer_

std::unique_ptr<m::StackMachine> m::StoreWriter::writer_
mutableprivate

the writing StackMachine

Definition at line 120 of file mutable.hpp.


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