All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends
Public Member Functions | Public Attributes | List of all members
Akumuli::Volume Struct Reference

#include <storage.h>

Inheritance diagram for Akumuli::Volume:

Public Member Functions

 Volume (const char *file_path, aku_FineTuneParams conf, aku_logger_cb_t logger)
 Create new volume stored in file.
PageHeaderget_page () const
 Get pointer to page.
std::shared_ptr< Volumesafe_realloc ()
 Reallocate space safely.
void open ()
 Open page for writing.
void close ()
 Flush all data and close volume for write until reallocation.
void flush ()
 Flush page.
void make_readonly ()
 Make volume read-only.
void make_writable ()
 Make volume writeable.

Public Attributes

MemoryMappedFile mmap_
aku_Duration window_
size_t max_cache_size_
std::unique_ptr< Sequencercache_
std::string file_path_
aku_FineTuneParams config_
aku_logger_cb_t logger_
std::atomic_bool is_temporary_

Detailed Description

Storage volume. Coresponds to one of the storage pages. Includes page data and main memory data.

The documentation for this struct was generated from the following files: