libfoedus-core
FOEDUS Core Library
|
Current status of each input. More...
Current status of each input.
"Current" means the first log that is not yet processed. "Chunk" means the last log in the current chunk to be batch-processed. "Previous chunk" is the previous chunk of this input in the same batch, thus all logs in the previous chunk are guaranteed to be smaller than the batch-threshold. "End" means the end of input.
Definition at line 167 of file merge_sort.hpp.
#include <merge_sort.hpp>
Public Member Functions | |
void | assert_consistent () const __attribute__((always_inline)) |
const log::RecordLogType * | get_cur_log () const __attribute__((always_inline)) |
const log::RecordLogType * | get_chunk_log () const __attribute__((always_inline)) |
const log::RecordLogType * | from_byte_pos (uint64_t pos) const __attribute__((always_inline)) |
const log::RecordLogType * | from_compact_pos (BufferPosition pos) const __attribute__((always_inline)) |
uint64_t | to_absolute_pos (uint64_t relative_pos) const __attribute__((always_inline)) |
bool | is_last_window () const __attribute__((always_inline)) |
bool | is_ended () const __attribute__((always_inline)) |
bool | is_last_chunk_in_window () const __attribute__((always_inline)) |
bool | is_last_chunk_overall () const __attribute__((always_inline)) |
Public Attributes | |
const char * | window_ |
uint64_t | cur_relative_pos_ |
uint64_t | chunk_relative_pos_ |
char | padding_ [6] |
uint64_t | previous_chunk_relative_pos_ |
uint64_t | window_offset_ |
relative pos counts from this offset More... | |
uint64_t | window_size_ |
uint64_t | end_absolute_pos_ |
|
inline |
Definition at line 181 of file merge_sort.hpp.
References ASSERT_ND, chunk_relative_pos_, foedus::log::BaseLogType::header_, and foedus::log::LogHeader::log_length_.
Referenced by from_byte_pos(), from_compact_pos(), get_chunk_log(), get_cur_log(), foedus::snapshot::MergeSort::initialize_once(), is_ended(), is_last_window(), and to_absolute_pos().
|
inline |
Definition at line 209 of file merge_sort.hpp.
References assert_consistent(), and ASSERT_ND.
|
inline |
Definition at line 214 of file merge_sort.hpp.
References assert_consistent(), and ASSERT_ND.
Referenced by foedus::snapshot::MergeSort::fetch_logs(), foedus::snapshot::MergeSort::AdjustComparatorMasstree::operator()(), and foedus::snapshot::MergeSort::resolve_merged_position().
|
inline |
Definition at line 205 of file merge_sort.hpp.
References assert_consistent(), and chunk_relative_pos_.
Referenced by is_last_chunk_in_window().
|
inline |
Definition at line 201 of file merge_sort.hpp.
References assert_consistent(), and cur_relative_pos_.
|
inline |
Definition at line 227 of file merge_sort.hpp.
References assert_consistent(), end_absolute_pos_, and to_absolute_pos().
|
inline |
Definition at line 231 of file merge_sort.hpp.
References ASSERT_ND, end_absolute_pos_, get_chunk_log(), foedus::log::BaseLogType::header_, is_last_window(), foedus::snapshot::MergeSort::kWindowChunkReserveBytes, foedus::log::LogHeader::log_length_, to_absolute_pos(), and window_size_.
Referenced by is_last_chunk_overall().
|
inline |
Definition at line 248 of file merge_sort.hpp.
References is_last_chunk_in_window(), and is_last_window().
|
inline |
Definition at line 223 of file merge_sort.hpp.
References assert_consistent(), end_absolute_pos_, and to_absolute_pos().
Referenced by is_last_chunk_in_window(), and is_last_chunk_overall().
|
inline |
Definition at line 219 of file merge_sort.hpp.
References assert_consistent().
Referenced by is_ended(), is_last_chunk_in_window(), and is_last_window().
uint64_t foedus::snapshot::MergeSort::InputStatus::chunk_relative_pos_ |
Definition at line 172 of file merge_sort.hpp.
Referenced by assert_consistent(), get_chunk_log(), and foedus::snapshot::MergeSort::initialize_once().
uint64_t foedus::snapshot::MergeSort::InputStatus::cur_relative_pos_ |
Definition at line 170 of file merge_sort.hpp.
Referenced by get_cur_log(), and foedus::snapshot::MergeSort::initialize_once().
uint64_t foedus::snapshot::MergeSort::InputStatus::end_absolute_pos_ |
Definition at line 179 of file merge_sort.hpp.
Referenced by foedus::snapshot::MergeSort::initialize_once(), is_ended(), is_last_chunk_in_window(), and is_last_window().
char foedus::snapshot::MergeSort::InputStatus::padding_[6] |
Definition at line 173 of file merge_sort.hpp.
uint64_t foedus::snapshot::MergeSort::InputStatus::previous_chunk_relative_pos_ |
Definition at line 175 of file merge_sort.hpp.
Referenced by foedus::snapshot::MergeSort::initialize_once().
const char* foedus::snapshot::MergeSort::InputStatus::window_ |
Definition at line 168 of file merge_sort.hpp.
Referenced by foedus::snapshot::MergeSort::initialize_once().
uint64_t foedus::snapshot::MergeSort::InputStatus::window_offset_ |
relative pos counts from this offset
Definition at line 177 of file merge_sort.hpp.
Referenced by foedus::snapshot::MergeSort::initialize_once().
uint64_t foedus::snapshot::MergeSort::InputStatus::window_size_ |
Definition at line 178 of file merge_sort.hpp.
Referenced by foedus::snapshot::MergeSort::initialize_once(), and is_last_chunk_in_window().