libfoedus-core
FOEDUS Core Library
|
Dynamic information of one partitioner. More...
Dynamic information of one partitioner.
Because partition keys are KeySlice, this is fixed-size like ArrayPartitionerData.
Definition at line 138 of file masstree_partitioner_impl.hpp.
#include <masstree_partitioner_impl.hpp>
Public Member Functions | |
MasstreePartitionerData ()=delete | |
~MasstreePartitionerData ()=delete | |
uint16_t | find_partition (const char *key, uint16_t key_length) const |
Returns the partition (node ID) that should contain the key. More... | |
Public Attributes | |
uint16_t | partition_count_ |
KeySlice | low_keys_ [kMaxIntermediatePointers] |
uint16_t | partitions_ [kMaxIntermediatePointers] |
|
delete |
|
delete |
uint16_t foedus::storage::masstree::MasstreePartitionerData::find_partition | ( | const char * | key, |
uint16_t | key_length | ||
) | const |
Returns the partition (node ID) that should contain the key.
MasstreePartitionerData methods, binary search.
Definition at line 527 of file masstree_partitioner_impl.cpp.
References ASSERT_ND, foedus::storage::masstree::is_key_aligned_and_zero_padded(), low_keys_, foedus::storage::masstree::normalize_be_bytes_full_aligned(), partition_count_, and partitions_.
Referenced by foedus::storage::masstree::MasstreePartitioner::partition_batch().
KeySlice foedus::storage::masstree::MasstreePartitionerData::low_keys_[kMaxIntermediatePointers] |
Definition at line 147 of file masstree_partitioner_impl.hpp.
Referenced by foedus::storage::masstree::MasstreeComposer::drop_volatiles(), find_partition(), and foedus::storage::masstree::operator<<().
uint16_t foedus::storage::masstree::MasstreePartitionerData::partition_count_ |
Definition at line 146 of file masstree_partitioner_impl.hpp.
Referenced by foedus::storage::masstree::MasstreeComposer::drop_volatiles(), find_partition(), foedus::storage::masstree::MasstreePartitioner::is_partitionable(), foedus::storage::masstree::operator<<(), and foedus::storage::masstree::MasstreePartitioner::partition_batch().
uint16_t foedus::storage::masstree::MasstreePartitionerData::partitions_[kMaxIntermediatePointers] |
Definition at line 148 of file masstree_partitioner_impl.hpp.
Referenced by foedus::storage::masstree::MasstreeComposer::drop_volatiles(), find_partition(), and foedus::storage::masstree::operator<<().