OmniSciDB
a5dc49c757
|
Functions | |
bool | use_multithreaded_reduction (const size_t entry_count) |
size_t | get_row_qw_count (const QueryMemoryDescriptor &query_mem_desc) |
std::vector< int64_t > | make_key (const int64_t *buff, const size_t entry_count, const size_t key_count) |
void | fill_slots (int64_t *dst_entry, const size_t dst_entry_count, const int64_t *src_buff, const size_t src_entry_idx, const size_t src_entry_count, const QueryMemoryDescriptor &query_mem_desc) |
ALWAYS_INLINE void | fill_empty_key_32 (int32_t *key_ptr_i32, const size_t key_count) |
ALWAYS_INLINE void | fill_empty_key_64 (int64_t *key_ptr_i64, const size_t key_count) |
int64_t | get_component (const int8_t *group_by_buffer, const size_t comp_sz, const size_t index=0) |
void | run_reduction_code (const size_t executor_id, const ReductionCode &reduction_code, int8_t *this_buff, const int8_t *that_buff, const int32_t start_entry_index, const int32_t end_entry_index, const int32_t that_entry_count, const void *this_qmd, const void *that_qmd, const void *serialized_varlen_buffer) |
ALWAYS_INLINE void | check_watchdog () |
ALWAYS_INLINE void | check_watchdog_with_seed (const size_t sample_seed) |
GroupValueInfo | get_matching_group_value_columnar_reduction (int64_t *groups_buffer, const uint32_t h, const int64_t *key, const uint32_t key_qw_count, const size_t entry_count) |
GroupValueInfo | get_group_value_columnar_reduction (int64_t *groups_buffer, const uint32_t groups_buffer_entry_count, const int64_t *key, const uint32_t key_qw_count) |
template<typename T = int64_t> | |
GroupValueInfo | get_matching_group_value_reduction (int64_t *groups_buffer, const uint32_t h, const T *key, const uint32_t key_count, const QueryMemoryDescriptor &query_mem_desc, const int64_t *that_buff_i64, const size_t that_entry_idx, const size_t that_entry_count, const uint32_t row_size_quad) |
GroupValueInfo | get_matching_group_value_reduction (int64_t *groups_buffer, const uint32_t h, const int64_t *key, const uint32_t key_count, const size_t key_width, const QueryMemoryDescriptor &query_mem_desc, const int64_t *that_buff_i64, const size_t that_entry_idx, const size_t that_entry_count, const uint32_t row_size_quad) |
ALWAYS_INLINE void anonymous_namespace{ResultSetReduction.cpp}::check_watchdog | ( | ) |
Definition at line 386 of file ResultSetReduction.cpp.
References dynamic_watchdog(), and UNLIKELY.
Referenced by ResultSetStorage::reduceEntriesNoCollisionsColWise().
ALWAYS_INLINE void anonymous_namespace{ResultSetReduction.cpp}::check_watchdog_with_seed | ( | const size_t | sample_seed | ) |
Definition at line 395 of file ResultSetReduction.cpp.
References dynamic_watchdog(), and UNLIKELY.
Referenced by ResultSetStorage::reduceOneEntryBaseline().
ALWAYS_INLINE void anonymous_namespace{ResultSetReduction.cpp}::fill_empty_key_32 | ( | int32_t * | key_ptr_i32, |
const size_t | key_count | ||
) |
Definition at line 89 of file ResultSetReduction.cpp.
References EMPTY_KEY_32.
Referenced by result_set::fill_empty_key(), and ResultSetStorage::initializeRowWise().
ALWAYS_INLINE void anonymous_namespace{ResultSetReduction.cpp}::fill_empty_key_64 | ( | int64_t * | key_ptr_i64, |
const size_t | key_count | ||
) |
Definition at line 96 of file ResultSetReduction.cpp.
References EMPTY_KEY_64.
Referenced by result_set::fill_empty_key(), and ResultSetStorage::initializeRowWise().
void anonymous_namespace{ResultSetReduction.cpp}::fill_slots | ( | int64_t * | dst_entry, |
const size_t | dst_entry_count, | ||
const int64_t * | src_buff, | ||
const size_t | src_entry_idx, | ||
const size_t | src_entry_count, | ||
const QueryMemoryDescriptor & | query_mem_desc | ||
) |
Definition at line 65 of file ResultSetReduction.cpp.
References QueryMemoryDescriptor::didOutputColumnar(), get_row_qw_count(), get_slot_off_quad(), QueryMemoryDescriptor::getBufferColSlotCount(), QueryMemoryDescriptor::getGroupbyColCount(), and slot_offset_colwise().
Referenced by get_matching_group_value_reduction(), ResultSetStorage::moveOneEntryToBuffer(), and ResultSetStorage::reduceOneEntryBaseline().
|
inline |
Definition at line 102 of file ResultSetReduction.cpp.
References CHECK.
Referenced by ResultSetStorage::reduceSingleRow().
GroupValueInfo anonymous_namespace{ResultSetReduction.cpp}::get_group_value_columnar_reduction | ( | int64_t * | groups_buffer, |
const uint32_t | groups_buffer_entry_count, | ||
const int64_t * | key, | ||
const uint32_t | key_qw_count | ||
) |
Definition at line 655 of file ResultSetReduction.cpp.
References get_matching_group_value_columnar_reduction(), and key_hash().
Referenced by ResultSetStorage::reduceOneEntryBaseline().
GroupValueInfo anonymous_namespace{ResultSetReduction.cpp}::get_matching_group_value_columnar_reduction | ( | int64_t * | groups_buffer, |
const uint32_t | h, | ||
const int64_t * | key, | ||
const uint32_t | key_qw_count, | ||
const size_t | entry_count | ||
) |
Definition at line 628 of file ResultSetReduction.cpp.
References EMPTY_KEY_64, and mapd_cas.
Referenced by get_group_value_columnar_reduction().
GroupValueInfo anonymous_namespace{ResultSetReduction.cpp}::get_matching_group_value_reduction | ( | int64_t * | groups_buffer, |
const uint32_t | h, | ||
const T * | key, | ||
const uint32_t | key_count, | ||
const QueryMemoryDescriptor & | query_mem_desc, | ||
const int64_t * | that_buff_i64, | ||
const size_t | that_entry_idx, | ||
const size_t | that_entry_count, | ||
const uint32_t | row_size_quad | ||
) |
Definition at line 697 of file ResultSetReduction.cpp.
References cas_cst, fill_slots(), get_slot_off_quad(), QueryMemoryDescriptor::getEntryCount(), load_cst, query_mem_desc, store_cst, and heavydb.dtypes::T.
Referenced by result_set::get_group_value_reduction(), and get_matching_group_value_reduction().
|
inline |
Definition at line 742 of file ResultSetReduction.cpp.
References CHECK, and get_matching_group_value_reduction().
size_t anonymous_namespace{ResultSetReduction.cpp}::get_row_qw_count | ( | const QueryMemoryDescriptor & | query_mem_desc | ) |
Definition at line 47 of file ResultSetReduction.cpp.
References CHECK_EQ, and get_row_bytes().
Referenced by fill_slots(), and ResultSetStorage::moveEntriesToBuffer().
std::vector<int64_t> anonymous_namespace{ResultSetReduction.cpp}::make_key | ( | const int64_t * | buff, |
const size_t | entry_count, | ||
const size_t | key_count | ||
) |
Definition at line 53 of file ResultSetReduction.cpp.
Referenced by ResultSetStorage::moveOneEntryToBuffer(), and ResultSetStorage::reduceOneEntryBaseline().
void anonymous_namespace{ResultSetReduction.cpp}::run_reduction_code | ( | const size_t | executor_id, |
const ReductionCode & | reduction_code, | ||
int8_t * | this_buff, | ||
const int8_t * | that_buff, | ||
const int32_t | start_entry_index, | ||
const int32_t | end_entry_index, | ||
const int32_t | that_entry_count, | ||
const void * | this_qmd, | ||
const void * | that_qmd, | ||
const void * | serialized_varlen_buffer | ||
) |
Definition at line 132 of file ResultSetReduction.cpp.
References ReductionCode::func_ptr, ReductionInterpreter::EvalValue::int_val, ReductionCode::ir_reduce_loop, ReductionInterpreter::MakeEvalValue(), and ReductionInterpreter::run().
Referenced by ResultSetStorage::reduce().
bool anonymous_namespace{ResultSetReduction.cpp}::use_multithreaded_reduction | ( | const size_t | entry_count | ) |
Definition at line 43 of file ResultSetReduction.cpp.
Referenced by ResultSetStorage::moveEntriesToBuffer(), and ResultSetStorage::reduce().