libfoedus-core
FOEDUS Core Library
|
Represents one key-value store. More...
Represents one key-value store.
This pure virtual class represents a set of key-value pairs. The individual storage class defines how they are stored.
Definition at line 116 of file storage.hpp.
#include <storage.hpp>
Public Member Functions | |
Storage () | |
Storage (Engine *engine, CONTROL_BLOCK *control_block) | |
Storage (Engine *engine, StorageControlBlock *control_block) | |
Storage (Engine *engine, StorageId id) | |
Shorthand for engine->get_storage_manager()->get_storage(id) More... | |
Storage (Engine *engine, const StorageName &name) | |
Shorthand for engine->get_storage_manager()->get_storage(name) More... | |
Storage (const Storage &other) | |
Storage & | operator= (const Storage &other) |
StorageId | get_id () const |
Returns the unique ID of this storage. More... | |
StorageType | get_type () const |
Returns the type of this storage. More... | |
const StorageName & | get_name () const |
Returns the unique name of this storage. More... | |
const Metadata * | get_metadata () const |
Returns the metadata of this storage. More... | |
bool | exists () const |
Returns whether this storage is already created. More... | |
![]() | |
Attachable () | |
Attachable (Engine *engine) | |
Attachable (Engine *engine, CONTROL_BLOCK *control_block) | |
Attachable (CONTROL_BLOCK *control_block) | |
virtual | ~Attachable () |
Attachable (const Attachable &other) | |
Attachable & | operator= (const Attachable &other) |
virtual void | attach (CONTROL_BLOCK *control_block) |
Attaches to the given shared memory. More... | |
bool | is_attached () const |
Returns whether the object has been already attached to some shared memory. More... | |
CONTROL_BLOCK * | get_control_block () const |
Engine * | get_engine () const |
void | set_engine (Engine *engine) |
Additional Inherited Members | |
![]() | |
Engine * | engine_ |
Most attachable object stores an engine pointer (local engine), so we define it here. More... | |
CONTROL_BLOCK * | control_block_ |
The shared data on shared memory that has been initialized in some SOC or master engine. More... | |
|
inline |
Definition at line 118 of file storage.hpp.
|
inline |
Definition at line 119 of file storage.hpp.
|
inline |
Definition at line 121 of file storage.hpp.
|
inline |
Shorthand for engine->get_storage_manager()->get_storage(id)
Definition at line 124 of file storage.hpp.
|
inline |
Shorthand for engine->get_storage_manager()->get_storage(name)
Definition at line 129 of file storage.hpp.
|
inline |
Definition at line 134 of file storage.hpp.
|
inline |
Returns whether this storage is already created.
Definition at line 169 of file storage.hpp.
Referenced by foedus::storage::array::array_volatile_page_init(), foedus::storage::array::ArrayComposer::ArrayComposer(), foedus::storage::hash::HashPartitioner::design_partition(), foedus::storage::array::ArrayPartitioner::design_partition(), foedus::storage::Storage< MasstreeStorageControlBlock >::exists(), foedus::storage::hash::HashComposer::HashComposer(), and foedus::storage::masstree::MasstreeComposer::MasstreeComposer().
|
inline |
Returns the unique ID of this storage.
Definition at line 145 of file storage.hpp.
Referenced by foedus::storage::array::operator<<(), foedus::storage::masstree::operator<<(), foedus::storage::sequential::operator<<(), and foedus::storage::hash::operator<<().
|
inline |
Returns the metadata of this storage.
Definition at line 162 of file storage.hpp.
Referenced by foedus::storage::array::ArrayComposer::construct_root(), foedus::storage::hash::HashComposer::construct_root(), foedus::storage::sequential::SequentialComposer::construct_root(), foedus::storage::Storage< MasstreeStorageControlBlock >::get_id(), foedus::storage::Storage< MasstreeStorageControlBlock >::get_name(), and foedus::storage::Storage< MasstreeStorageControlBlock >::get_type().
|
inline |
Returns the unique name of this storage.
Definition at line 155 of file storage.hpp.
Referenced by foedus::storage::array::ArrayComposer::drop_root_volatile(), foedus::storage::hash::HashComposer::drop_root_volatile(), foedus::storage::masstree::MasstreeComposer::drop_root_volatile(), foedus::storage::array::ArrayComposer::drop_volatiles(), foedus::storage::hash::HashComposer::drop_volatiles(), foedus::storage::masstree::MasstreeComposer::drop_volatiles(), foedus::storage::array::operator<<(), foedus::storage::masstree::operator<<(), foedus::storage::sequential::operator<<(), and foedus::storage::hash::operator<<().
|
inline |
Returns the type of this storage.
Definition at line 150 of file storage.hpp.
|
inline |
Definition at line 136 of file storage.hpp.