OmniSciDB
a5dc49c757
|
Classes | |
struct | AddNbytes |
Functions | |
void | check_total_bitmap_memory (const QueryMemoryDescriptor &query_mem_desc) |
std::pair< int64_t *, bool > | alloc_group_by_buffer (const size_t numBytes, RenderAllocatorMap *render_allocator_map, const size_t thread_idx, RowSetMemoryOwner *mem_owner, const bool reuse_existing_buffer_for_thread) |
int64_t | get_consistent_frag_size (const std::vector< uint64_t > &frag_offsets) |
std::vector< int64_t > | get_consistent_frags_sizes (const std::vector< std::vector< uint64_t >> &frag_offsets) |
std::vector< int64_t > | get_consistent_frags_sizes (const std::vector< Analyzer::Expr * > &target_exprs, const std::vector< int64_t > &table_frag_sizes) |
std::vector< std::vector < int64_t > > | get_col_frag_offsets (const std::vector< Analyzer::Expr * > &target_exprs, const std::vector< std::vector< uint64_t >> &table_frag_offsets) |
int | get_input_idx (RelAlgExecutionUnit const &ra_exe_unit, const shared::TableKey &outer_table_key) |
void | check_count_distinct_expr_metadata (const QueryMemoryDescriptor &query_mem_desc, const RelAlgExecutionUnit &ra_exe_unit) |
QueryMemoryInitializer::TargetAggOpsMetadata | collect_target_expr_metadata (const QueryMemoryDescriptor &query_mem_desc, const RelAlgExecutionUnit &ra_exe_unit) |
template<typename T > | |
int8_t * | initColumnarBuffer (T *buffer_ptr, const T init_val, const uint32_t entry_count) |
void | compact_projection_buffer_for_cpu_columnar (const QueryMemoryDescriptor &query_mem_desc, int8_t *projection_buffer, const size_t projection_count) |
std::pair<int64_t*, bool> anonymous_namespace{QueryMemoryInitializer.cpp}::alloc_group_by_buffer | ( | const size_t | numBytes, |
RenderAllocatorMap * | render_allocator_map, | ||
const size_t | thread_idx, | ||
RowSetMemoryOwner * | mem_owner, | ||
const bool | reuse_existing_buffer_for_thread | ||
) |
Definition at line 67 of file QueryMemoryInitializer.cpp.
References RowSetMemoryOwner::allocate(), RowSetMemoryOwner::allocateCachedGroupByBuffer(), and RenderAllocatorMap::getRenderAllocator().
Referenced by QueryMemoryInitializer::QueryMemoryInitializer(), and thread_idx_().
void anonymous_namespace{QueryMemoryInitializer.cpp}::check_count_distinct_expr_metadata | ( | const QueryMemoryDescriptor & | query_mem_desc, |
const RelAlgExecutionUnit & | ra_exe_unit | ||
) |
Definition at line 175 of file QueryMemoryInitializer.cpp.
References CHECK, CHECK_EQ, CHECK_GE, CHECK_LT, g_bigint_count, get_target_info(), QueryMemoryDescriptor::getCountDistinctDescriptor(), QueryMemoryDescriptor::getLogicalSlotWidthBytes(), QueryMemoryDescriptor::getSlotCount(), QueryMemoryDescriptor::getSlotIndexForSingleSlotCol(), Invalid, is_distinct_target(), kAPPROX_COUNT_DISTINCT, kCOUNT, kCOUNT_IF, and RelAlgExecutionUnit::target_exprs.
Referenced by QueryMemoryInitializer::QueryMemoryInitializer().
|
inline |
Definition at line 40 of file QueryMemoryInitializer.cpp.
References Bitmap, CountDistinctDescriptor::bitmapPaddedSizeBytes(), g_bitmap_memory_limit, QueryMemoryDescriptor::getCountDistinctDescriptor(), QueryMemoryDescriptor::getCountDistinctDescriptorsSize(), and QueryMemoryDescriptor::getEntryCount().
Referenced by QueryMemoryInitializer::QueryMemoryInitializer().
QueryMemoryInitializer::TargetAggOpsMetadata anonymous_namespace{QueryMemoryInitializer.cpp}::collect_target_expr_metadata | ( | const QueryMemoryDescriptor & | query_mem_desc, |
const RelAlgExecutionUnit & | ra_exe_unit | ||
) |
Definition at line 199 of file QueryMemoryInitializer.cpp.
References QueryMemoryDescriptor::countDistinctDescriptorsLogicallyEmpty(), QueryMemoryInitializer::TargetAggOpsMetadata::has_count_distinct, QueryMemoryInitializer::TargetAggOpsMetadata::has_mode, QueryMemoryInitializer::TargetAggOpsMetadata::has_tdigest, kAPPROX_QUANTILE, kMODE, and RelAlgExecutionUnit::target_exprs.
Referenced by QueryMemoryInitializer::QueryMemoryInitializer().
void anonymous_namespace{QueryMemoryInitializer.cpp}::compact_projection_buffer_for_cpu_columnar | ( | const QueryMemoryDescriptor & | query_mem_desc, |
int8_t * | projection_buffer, | ||
const size_t | projection_count | ||
) |
Definition at line 1264 of file QueryMemoryInitializer.cpp.
References align_to_int64(), CHECK, QueryMemoryDescriptor::getColOffInBytes(), QueryMemoryDescriptor::getEntryCount(), QueryMemoryDescriptor::getPaddedSlotWidthBytes(), and QueryMemoryDescriptor::getSlotCount().
Referenced by QueryMemoryInitializer::compactProjectionBuffersCpu().
|
inline |
Definition at line 138 of file QueryMemoryInitializer.cpp.
References CHECK_EQ, and CHECK_LT.
Referenced by QueryMemoryInitializer::QueryMemoryInitializer(), and thread_idx_().
|
inline |
Definition at line 88 of file QueryMemoryInitializer.cpp.
Referenced by get_consistent_frags_sizes().
|
inline |
Definition at line 103 of file QueryMemoryInitializer.cpp.
References get_consistent_frag_size().
Referenced by QueryMemoryInitializer::QueryMemoryInitializer(), and thread_idx_().
|
inline |
int anonymous_namespace{QueryMemoryInitializer.cpp}::get_input_idx | ( | RelAlgExecutionUnit const & | ra_exe_unit, |
const shared::TableKey & | outer_table_key | ||
) |
Definition at line 165 of file QueryMemoryInitializer.cpp.
References RelAlgExecutionUnit::input_descs.
Referenced by QueryPlanDagExtractor::handleLeftDeepJoinTree(), and QueryMemoryInitializer::QueryMemoryInitializer().
int8_t* anonymous_namespace{QueryMemoryInitializer.cpp}::initColumnarBuffer | ( | T * | buffer_ptr, |
const T | init_val, | ||
const uint32_t | entry_count | ||
) |