18 #ifndef FOEDUS_SNAPSHOT_LOG_REDUCER_REF_HPP_
19 #define FOEDUS_SNAPSHOT_LOG_REDUCER_REF_HPP_
76 const char* send_buffer,
78 uint64_t send_buffer_size,
79 uint32_t shortest_key_length,
80 uint32_t longest_key_length);
90 const char* send_buffer,
92 uint64_t send_buffer_size)
const;
102 #endif // FOEDUS_SNAPSHOT_LOG_REDUCER_REF_HPP_
Definitions of IDs in this package and a few related constant values.
#define CXX11_NULLPTR
Used in public headers in place of "nullptr" of C++11.
uint32_t StorageId
Unique ID for storage.
Root package of FOEDUS (Fast Optimistic Engine for Data Unification Services).
storage::Page * root_info_pages_
Forward declarations of classes in root package.
Forward declarations of classes in snapshot manager package.
const Snapshot & get_cur_snapshot() const
void append_log_chunk(storage::StorageId storage_id, const char *send_buffer, uint32_t log_count, uint64_t send_buffer_size, uint32_t shortest_key_length, uint32_t longest_key_length)
Append the log entries of one storage in the given buffer to this reducer's buffer.
A remote view of LogReducer from all engines.
Forward declarations of classes in storage package.
uint32_t get_current_buffer_index_atomic() const
LogReducerControlBlock * control_block_
Database engine object that holds all resources and provides APIs.
friend std::ostream & operator<<(std::ostream &o, const LogReducerRef &v)
Shared data for LogReducer.
Just a marker to denote that the memory region represents a data page.
std::string to_string() const
Represents one snapshot that converts all logs from base epoch to valid_until epoch into snapshot fil...
uint64_t get_buffer_size() const
storage::Page * get_root_info_pages()
void * get_buffer(uint32_t index) const
bool verify_log_chunk(storage::StorageId storage_id, const char *send_buffer, uint32_t log_count, uint64_t send_buffer_size) const
used only in debug mode
uint32_t get_total_storage_count() const