20 #include <glog/logging.h>
36 namespace sequential {
48 o <<
"<SequentialCreateLog>" << v.
metadata_ <<
"</SequentialCreateLog>";
62 o <<
"<SequentialTruncateLog>"
65 <<
"</SequentialTruncateLog>";
70 o <<
"<SequentialAppendLog>"
74 for (uint16_t i = 0; i < std::min<uint16_t>(8, v.
payload_count_); ++i) {
75 o << i <<
":" <<
static_cast<int>(v.
payload_[i]) <<
" ";
78 o <<
"</SequentialAppendLog>";
Epoch new_truncate_epoch_
SequentialMetadata metadata_
void apply_storage(Engine *engine, StorageId storage_id)
void apply_storage(Engine *engine, StorageId storage_id)
std::ostream & operator<<(std::ostream &o, const SequentialCursor &v)
uint32_t StorageId
Unique ID for storage.
Root package of FOEDUS (Fast Optimistic Engine for Data Unification Services).
void apply_truncate(const SequentialTruncateLogType &the_log)
Represents an append/scan-only store.
Declares common log types for all (or at least multiple) storage types.
Database engine object that holds all resources and provides APIs.
Log type of CREATE SEQUENTIAL STORAGE operation.
Declares all log types used in this storage type.
Log type of TRUNCATE SEQUENTIAL STORAGE operation.
Base type for CREATE STORAGE operation.
Log type of sequential-storage's append operation.
#define ASSERT_ND(x)
A warning-free wrapper macro of assert() that has no performance effect in release mode even when 'x'...