![]() |
mutable
A Database System for Research and Fast Prototyping
|
This class provides direct write access to the contents of a Store
.
More...
#include <mutable.hpp>
Public Member Functions | |
StoreWriter (Store &store) | |
~StoreWriter () | |
const Schema & | schema () const |
Returns the Schema of Tuple s to write. | |
void | append (const Tuple &tup) const |
Appends tup to the store. | |
Private Attributes | |
Store & | store_ |
the store to access | |
Schema | S |
the schema of the tuples to read/write | |
std::unique_ptr< m::StackMachine > | writer_ |
the writing StackMachine | |
const storage::DataLayout * | layout_ = nullptr |
the last seen DataLayout ; used to observe updates | |
This class provides direct write access to the contents of a Store
.
Definition at line 115 of file mutable.hpp.
m::StoreWriter::StoreWriter | ( | Store & | store | ) |
Definition at line 444 of file mutable.cpp.
m::StoreWriter::~StoreWriter | ( | ) |
Definition at line 446 of file mutable.cpp.
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().
|
inline |
Returns the Schema
of Tuple
s to write.
Definition at line 128 of file mutable.hpp.
Referenced by m::InsertRecords::execute(), and m::execute_statement().
|
mutableprivate |
the last seen DataLayout
; used to observe updates
Definition at line 121 of file mutable.hpp.
|
private |
the schema of the tuples to read/write
Definition at line 119 of file mutable.hpp.
|
private |
the store to access
Definition at line 118 of file mutable.hpp.
|
mutableprivate |
the writing StackMachine
Definition at line 120 of file mutable.hpp.