aether::null_external_storage Class Reference

An empty external storage implementation, used when no external storage is configured. More...

#include <external_storage.hh>

Public Member Functions

 null_external_storage ()
 
bool get_tick_data (const storage_state &) override
 Called by aether to check if there's any data that needs to be provided to the external storage implementation. More...
 
void store_tick_data (const storage_state &) override
 Called by aether to forward the data to the user provided store implementation. More...
 
void store_tick_data_ack (uint64_t completed_tick) override
 Called when all workers have finished their writes for a given tick, if any. More...
 

Detailed Description

An empty external storage implementation, used when no external storage is configured.

Constructor & Destructor Documentation

aether::null_external_storage::null_external_storage ( )
inline

Member Function Documentation

bool aether::null_external_storage::get_tick_data ( const storage_state )
inlineoverridevirtual

Called by aether to check if there's any data that needs to be provided to the external storage implementation.

Implements aether::external_storage_iface.

void aether::null_external_storage::store_tick_data ( const storage_state )
inlineoverridevirtual

Called by aether to forward the data to the user provided store implementation.

Implements aether::external_storage_iface.

void aether::null_external_storage::store_tick_data_ack ( uint64_t  completed_tick)
inlineoverridevirtual

Called when all workers have finished their writes for a given tick, if any.

Useful when using an append-based data model: enables notifying the database that all the updates for a given tick_id have been committed, so that the readers can safely read the data for this tick. Called from the background storage thread.

Implements aether::external_storage_iface.