|
Tkrzw
|
Update logger adapter for the second shard and later. More...
#include <tkrzw_dbm_ulog.h>
Public Member Functions | |
| DBMUpdateLoggerSecondShard () | |
| Default constructor. More... | |
| DBMUpdateLoggerSecondShard (DBM::UpdateLogger *ulog) | |
| Constructor. More... | |
| void | SetUpdateLogger (DBM::UpdateLogger *ulog) |
| Set the update logger to do actual logging. More... | |
| Status | WriteSet (std::string_view key, std::string_view value) override |
| Writes a log for modifying an existing record or adding a new record. More... | |
| Status | WriteRemove (std::string_view key) override |
| Writes a log for removing an existing record. More... | |
| Status | WriteClear () override |
| Writes a log for removing all records. More... | |
Public Member Functions inherited from tkrzw::DBM::UpdateLogger | |
| virtual | ~UpdateLogger ()=default |
| Destructor. More... | |
| virtual Status | Synchronize (bool hard) |
| Synchronizes the metadata and content to the file system. More... | |
Public Attributes | |
| DBM::UpdateLogger * | ulog_ |
| The internal update logger. More... | |
Update logger adapter for the second shard and later.
| tkrzw::DBMUpdateLoggerSecondShard::DBMUpdateLoggerSecondShard | ( | ) |
Default constructor.
|
explicit |
Constructor.
| ulog | The logger to do actual logging. |
| void tkrzw::DBMUpdateLoggerSecondShard::SetUpdateLogger | ( | DBM::UpdateLogger * | ulog | ) |
Set the update logger to do actual logging.
| ulog | The update logger to do actual logging. |
|
overridevirtual |
Writes a log for modifying an existing record or adding a new record.
| key | The key of the record. |
| value | The new value of the record. |
Implements tkrzw::DBM::UpdateLogger.
|
overridevirtual |
Writes a log for removing an existing record.
| key | The key of the record. |
Implements tkrzw::DBM::UpdateLogger.
|
overridevirtual |
Writes a log for removing all records.
This does no operation.
Implements tkrzw::DBM::UpdateLogger.
| DBM::UpdateLogger* tkrzw::DBMUpdateLoggerSecondShard::ulog_ |
The internal update logger.