|
vkdb
A time series database engine in C++.
|
Write-ahead log. More...
#include <write_ahead_log.h>
Public Member Functions | |
| WriteAheadLog ()=delete | |
| Deleted default constructor. | |
| WriteAheadLog (FilePath lsm_tree_path) noexcept | |
| Construct a new WriteAheadLog object given the path of the LSM tree. | |
| WriteAheadLog (WriteAheadLog &&) noexcept=default | |
| Move-construct a WriteAheadLog object. | |
| WriteAheadLog & | operator= (WriteAheadLog &&) noexcept=default |
| Move-assign a WriteAheadLog object. | |
| WriteAheadLog (const WriteAheadLog &)=delete | |
| Deleted copy constructor. | |
| WriteAheadLog & | operator= (const WriteAheadLog &)=delete |
| Deleted copy assignment operator. | |
| ~WriteAheadLog () noexcept=default | |
| Destroy the WriteAheadLog object. | |
| void | append (const WALRecord< TValue > &record) |
| Append a WAL record to the write-ahead log. | |
| void | replay (LSMTree< TValue > &lsm_tree) |
| Replay the write-ahead log on the LSM tree. | |
| void | clear () |
| Clear the write-ahead log. | |
| FilePath | path () const noexcept |
| Get the path of the write-ahead log. | |
Write-ahead log.
| TValue | Value type. |
Definition at line 20 of file write_ahead_log.h.
|
inlineexplicitnoexcept |
Construct a new WriteAheadLog object given the path of the LSM tree.
| lsm_tree_path | Path. |
Definition at line 34 of file write_ahead_log.h.
|
inline |
Append a WAL record to the write-ahead log.
| record | WAL record. |
| std::runtime_error | If the file cannot be opened. |
Definition at line 74 of file write_ahead_log.h.
|
inline |
Clear the write-ahead log.
| std::runtime_error | If the file cannot be opened. |
Definition at line 131 of file write_ahead_log.h.
|
inlinenodiscardnoexcept |
Get the path of the write-ahead log.
Definition at line 147 of file write_ahead_log.h.
|
inline |
Replay the write-ahead log on the LSM tree.
| lsm_tree | LSM tree. |
| std::runtime_error | If the file cannot be opened. |
Definition at line 94 of file write_ahead_log.h.