libfoedus-core
FOEDUS Core Library
|
Number of vol pages in each node sampled per pointer in the root page. More...
Number of vol pages in each node sampled per pointer in the root page.
Will be probably used in other partitioners, too.
Definition at line 155 of file masstree_partitioner_impl.hpp.
#include <masstree_partitioner_impl.hpp>
Public Member Functions | |
OwnerSamples (uint32_t nodes, uint32_t subtrees) | |
~OwnerSamples () | |
void | increment (uint32_t node, uint32_t subtree_id) |
uint32_t | at (uint32_t node, uint32_t subtree_id) const |
uint32_t | get_assignment (uint32_t subtree_id) const |
void | assign_owners () |
Determine assignments based on the samples. More... | |
Public Attributes | |
const uint32_t | nodes_ |
number of nodes More... | |
const uint32_t | subtrees_ |
number of pointers to children in the root page More... | |
uint32_t * | occurrences_ |
number of occurences of a volatile page in the node. More... | |
uint32_t * | assignments_ |
node_id to be the owner of the subtree More... | |
Friends | |
std::ostream & | operator<< (std::ostream &o, const OwnerSamples &v) |
|
inline |
Definition at line 156 of file masstree_partitioner_impl.hpp.
References assignments_, and occurrences_.
|
inline |
Definition at line 162 of file masstree_partitioner_impl.hpp.
References assignments_, and occurrences_.
void foedus::storage::masstree::OwnerSamples::assign_owners | ( | ) |
Determine assignments based on the samples.
Definition at line 216 of file masstree_partitioner_impl.cpp.
References assignments_, at(), nodes_, and subtrees_.
|
inline |
Definition at line 183 of file masstree_partitioner_impl.hpp.
References ASSERT_ND.
Referenced by assign_owners(), and foedus::storage::masstree::operator<<().
|
inline |
Definition at line 189 of file masstree_partitioner_impl.hpp.
Referenced by foedus::storage::masstree::operator<<().
|
inline |
Definition at line 178 of file masstree_partitioner_impl.hpp.
References ASSERT_ND.
Referenced by foedus::storage::masstree::design_partition_first_parallel_recurse().
|
friend |
Definition at line 231 of file masstree_partitioner_impl.cpp.
uint32_t* foedus::storage::masstree::OwnerSamples::assignments_ |
node_id to be the owner of the subtree
Definition at line 176 of file masstree_partitioner_impl.hpp.
Referenced by assign_owners(), OwnerSamples(), and ~OwnerSamples().
const uint32_t foedus::storage::masstree::OwnerSamples::nodes_ |
number of nodes
Definition at line 170 of file masstree_partitioner_impl.hpp.
Referenced by assign_owners(), and foedus::storage::masstree::operator<<().
uint32_t* foedus::storage::masstree::OwnerSamples::occurrences_ |
number of occurences of a volatile page in the node.
Definition at line 174 of file masstree_partitioner_impl.hpp.
Referenced by OwnerSamples(), and ~OwnerSamples().
const uint32_t foedus::storage::masstree::OwnerSamples::subtrees_ |
number of pointers to children in the root page
Definition at line 172 of file masstree_partitioner_impl.hpp.
Referenced by assign_owners(), and foedus::storage::masstree::operator<<().