OmniSciDB
a5dc49c757
|
#include "RuntimeFunctions.h"
#include "BufferCompaction.h"
#include "DecisionTreeEntry.h"
#include "HyperLogLogRank.h"
#include "MurmurHash.h"
#include "Shared/Datum.h"
#include "Shared/quantile.h"
#include "TypePunning.h"
#include "Utils/SegmentTreeUtils.h"
#include <atomic>
#include <cfloat>
#include <chrono>
#include <cmath>
#include <cstring>
#include <functional>
#include <thread>
#include <tuple>
#include "DecodersImpl.h"
#include "GeoOpsRuntime.cpp"
#include "GroupByRuntime.cpp"
#include "JoinHashTable/Runtime/JoinHashTableQueryRuntime.cpp"
#include "TopKRuntime.cpp"
Go to the source code of this file.
Namespaces | |
anonymous_namespace{RuntimeFunctions.cpp} | |
Macros | |
#define | DEF_ARITH_NULLABLE(type, null_type, opname, opsym) |
#define | DEF_ARITH_NULLABLE_LHS(type, null_type, opname, opsym) |
#define | DEF_ARITH_NULLABLE_RHS(type, null_type, opname, opsym) |
#define | DEF_CMP_NULLABLE(type, null_type, opname, opsym) |
#define | DEF_CMP_NULLABLE_LHS(type, null_type, opname, opsym) |
#define | DEF_CMP_NULLABLE_RHS(type, null_type, opname, opsym) |
#define | DEF_SAFE_DIV_NULLABLE(type, null_type, opname) |
#define | DEF_BINARY_NULLABLE_ALL_OPS(type, null_type) |
#define | DEF_MAP_STRING_TO_DATUM(value_type, value_name) |
#define | DEF_UMINUS_NULLABLE(type, null_type) |
#define | DEF_CAST_NULLABLE(from_type, to_type) |
#define | DEF_CAST_SCALED_NULLABLE(from_type, to_type) |
#define | DEF_CAST_NULLABLE_BIDIR(type1, type2) |
#define | DEF_ROUND_NULLABLE(from_type, to_type) |
#define | GPU_RT_STUB NEVER_INLINE __attribute__((optnone)) |
#define | DEF_COMPUTE_CURRENT_ROW_IDX_IN_FRAME(value_type, oper_name) |
#define | DEF_COMPUTE_CURRENT_ROW_IDX_IN_FRAME_ALL_TYPES(oper_name) |
#define | DEF_RANGE_MODE_FRAME_LOWER_BOUND(target_val_type, col_type, null_type, opname, opsym) |
#define | DEF_RANGE_MODE_FRAME_UPPER_BOUND(target_val_type, col_type, null_type, opname, opsym) |
#define | DEF_GET_VALUE_IN_FRAME(col_type, logical_type) |
#define | DEF_SEARCH_AGGREGATION_TREE(agg_value_type) |
#define | DEF_SEARCH_DERIVED_AGGREGATION_TREE(agg_value_type) |
#define | DEF_HANDLE_NULL_FOR_WINDOW_FRAMING_AGG(agg_type, null_type) |
#define | DEF_FILL_MISSING_VALUE(col_type) |
#define | DEF_AGG_MAX_INT(n) |
#define | DEF_AGG_MIN_INT(n) |
#define | DEF_AGG_ID_INT(n) |
#define | DEF_CHECKED_SINGLE_AGG_ID_INT(n) |
#define | DEF_WRITE_PROJECTION_INT(n) |
#define | DEF_SKIP_AGG_ADD(base_agg_func) |
#define | DEF_SKIP_AGG(base_agg_func) |
#define | DATA_T int64_t |
#define | DATA_T int32_t |
#define | DATA_T int16_t |
#define | DATA_T int8_t |
#define | DEF_SKIP_AGG(base_agg_func) |
#define | DEF_SKIP_IF_AGG(skip_agg_func, base_agg_func) |
#define | DATA_T double |
#define | ADDR_T int64_t |
#define | DATA_T float |
#define | ADDR_T int32_t |
#define | DEF_SHARED_AGG_RET_STUBS(base_agg_func) |
#define | DEF_SHARED_AGG_STUBS(base_agg_func) |
Functions | |
RUNTIME_EXPORT ALWAYS_INLINE int64_t | scale_decimal_up (const int64_t operand, const uint64_t scale, const int64_t operand_null_val, const int64_t result_null_val) |
RUNTIME_EXPORT ALWAYS_INLINE int64_t | scale_decimal_down_nullable (const int64_t operand, const int64_t scale, const int64_t null_val) |
RUNTIME_EXPORT ALWAYS_INLINE int64_t | scale_decimal_down_not_nullable (const int64_t operand, const int64_t scale, const int64_t null_val) |
RUNTIME_EXPORT ALWAYS_INLINE int64_t | floor_div_lhs (const int64_t dividend, const int64_t divisor) |
RUNTIME_EXPORT ALWAYS_INLINE int64_t | floor_div_nullable_lhs (const int64_t dividend, const int64_t divisor, const int64_t null_val) |
RUNTIME_EXPORT ALWAYS_INLINE int8_t | logical_not (const int8_t operand, const int8_t null_val) |
RUNTIME_EXPORT ALWAYS_INLINE int8_t | logical_and (const int8_t lhs, const int8_t rhs, const int8_t null_val) |
RUNTIME_EXPORT ALWAYS_INLINE int8_t | logical_or (const int8_t lhs, const int8_t rhs, const int8_t null_val) |
RUNTIME_EXPORT ALWAYS_INLINE uint64_t | agg_count (uint64_t *agg, const int64_t) |
RUNTIME_EXPORT ALWAYS_INLINE void | agg_count_distinct_bitmap (int64_t *agg, const int64_t val, const int64_t min_val, const int64_t bucket_size) |
GPU_RT_STUB void | agg_count_distinct_bitmap_gpu (int64_t *, const int64_t, const int64_t, const int64_t, const int64_t, const int64_t, const uint64_t, const uint64_t) |
RUNTIME_EXPORT NEVER_INLINE void | agg_approximate_count_distinct (int64_t *agg, const int64_t key, const uint32_t b) |
GPU_RT_STUB void | agg_approximate_count_distinct_gpu (int64_t *, const int64_t, const uint32_t, const int64_t, const int64_t) |
RUNTIME_EXPORT ALWAYS_INLINE int8_t | bit_is_set (const int8_t *bitset, const int64_t val, const int64_t min_val, const int64_t max_val, const int64_t null_val, const int8_t null_bool_val) |
RUNTIME_EXPORT ALWAYS_INLINE int64_t | compute_int64_t_lower_bound (const int64_t entry_cnt, const int64_t target_value, const int64_t *col_buf) |
RUNTIME_EXPORT ALWAYS_INLINE int64_t | get_valid_buf_start_pos (const int64_t null_start_pos, const int64_t null_end_pos) |
RUNTIME_EXPORT ALWAYS_INLINE int64_t | get_valid_buf_end_pos (const int64_t num_elems, const int64_t null_start_pos, const int64_t null_end_pos) |
template<typename T , typename Comparator > | |
int64_t | compute_current_row_idx_in_frame (const int64_t num_elems, const int64_t cur_row_idx, const T *col_buf, const int32_t *partition_rowid_buf, const int64_t *ordered_index_buf, const T null_val, const bool nulls_first, const int64_t null_start_pos, const int64_t null_end_pos, Comparator cmp) |
template<typename TARGET_VAL_TYPE , typename COL_TYPE , typename NULL_TYPE > | |
int64_t | compute_lower_bound_from_ordered_partition_index (const int64_t num_elems, const TARGET_VAL_TYPE target_val, const COL_TYPE *col_buf, const int32_t *partition_rowid_buf, const int64_t *ordered_index_buf, const NULL_TYPE null_val, const bool nulls_first, const int64_t null_start_offset, const int64_t null_end_offset) |
template<typename TARGET_VAL_TYPE , typename COL_TYPE , typename NULL_TYPE > | |
int64_t | compute_upper_bound_from_ordered_partition_index (const int64_t num_elems, const TARGET_VAL_TYPE target_val, const COL_TYPE *col_buf, const int32_t *partition_rowid_buf, const int64_t *ordered_index_buf, const NULL_TYPE null_val, const bool nulls_first, const int64_t null_start_offset, const int64_t null_end_offset) |
template<typename COL_TYPE , typename LOGICAL_TYPE > | |
LOGICAL_TYPE | get_value_in_window_frame (const int64_t target_row_idx_in_frame, const int64_t frame_start_offset, const int64_t frame_end_offset, const COL_TYPE *col_buf, const int32_t *partition_rowid_buf, const int64_t *ordered_index_buf, const LOGICAL_TYPE logical_null_val, const LOGICAL_TYPE col_null_val) |
RUNTIME_EXPORT ALWAYS_INLINE int64_t | encode_date (int64_t decoded_val, int64_t null_val, int64_t multiplier) |
RUNTIME_EXPORT ALWAYS_INLINE int64_t | compute_row_mode_start_index_sub (int64_t candidate_index, int64_t current_partition_start_offset, int64_t frame_bound) |
RUNTIME_EXPORT ALWAYS_INLINE int64_t | compute_row_mode_start_index_add (int64_t candidate_index, int64_t current_partition_start_offset, int64_t frame_bound, int64_t num_current_partition_elem) |
RUNTIME_EXPORT ALWAYS_INLINE int64_t | compute_row_mode_end_index_sub (int64_t candidate_index, int64_t current_partition_start_offset, int64_t frame_bound) |
RUNTIME_EXPORT ALWAYS_INLINE int64_t | compute_row_mode_end_index_add (int64_t candidate_index, int64_t current_partition_start_offset, int64_t frame_bound, int64_t num_current_partition_elem) |
RUNTIME_EXPORT ALWAYS_INLINE int64_t * | get_integer_aggregation_tree (int64_t **aggregation_trees, size_t partition_idx) |
RUNTIME_EXPORT ALWAYS_INLINE double * | get_double_aggregation_tree (int64_t **aggregation_trees, size_t partition_idx) |
RUNTIME_EXPORT ALWAYS_INLINE SumAndCountPair< int64_t > * | get_integer_derived_aggregation_tree (int64_t **aggregation_trees, size_t partition_idx) |
RUNTIME_EXPORT ALWAYS_INLINE SumAndCountPair< double > * | get_double_derived_aggregation_tree (int64_t **aggregation_trees, size_t partition_idx) |
RUNTIME_EXPORT ALWAYS_INLINE size_t | getStartOffsetForSegmentTreeTraversal (size_t level, size_t tree_fanout) |
template<AggFuncType AGG_FUNC_TYPE, typename AGG_TYPE > | |
AGG_TYPE | anonymous_namespace{RuntimeFunctions.cpp}::agg_func (AGG_TYPE const lhs, AGG_TYPE const rhs) |
template<AggFuncType AGG_FUNC_TYPE, typename AGG_TYPE > | |
AGG_TYPE | compute_window_func_via_aggregation_tree (AGG_TYPE *aggregation_tree_for_partition, size_t query_range_start_idx, size_t query_range_end_idx, size_t leaf_level, size_t tree_fanout, AGG_TYPE init_val, AGG_TYPE invalid_val, AGG_TYPE null_val) |
template<typename AGG_VALUE_TYPE > | |
void | compute_derived_aggregates (SumAndCountPair< AGG_VALUE_TYPE > *aggregation_tree_for_partition, SumAndCountPair< AGG_VALUE_TYPE > &res, size_t query_range_start_idx, size_t query_range_end_idx, size_t leaf_level, size_t tree_fanout, AGG_VALUE_TYPE invalid_val, AGG_VALUE_TYPE null_val) |
template<typename T > | |
T | fill_missing_value (int64_t const cur_idx, T const null_val, T *const col_buf, int64_t const num_elems_in_partition, int32_t *const partition_rowid_buf, int64_t *const ordered_index_buf, bool const is_forward_fill) |
RUNTIME_EXPORT ALWAYS_INLINE int64_t | agg_sum (int64_t *agg, const int64_t val) |
RUNTIME_EXPORT ALWAYS_INLINE int64_t | agg_sum_if (int64_t *agg, const int64_t val, const int8_t cond) |
RUNTIME_EXPORT ALWAYS_INLINE void | agg_max (int64_t *agg, const int64_t val) |
RUNTIME_EXPORT ALWAYS_INLINE void | agg_min (int64_t *agg, const int64_t val) |
RUNTIME_EXPORT ALWAYS_INLINE void | agg_id (int64_t *agg, const int64_t val) |
RUNTIME_EXPORT ALWAYS_INLINE int8_t * | agg_id_varlen (int8_t *varlen_buffer, const int64_t offset, const int8_t *value, const int64_t size_bytes) |
RUNTIME_EXPORT ALWAYS_INLINE int32_t | checked_single_agg_id (int64_t *agg, const int64_t val, const int64_t null_val) |
RUNTIME_EXPORT ALWAYS_INLINE void | agg_count_distinct_bitmap_skip_val (int64_t *agg, const int64_t val, const int64_t min_val, const int64_t bucket_size, const int64_t skip_val) |
GPU_RT_STUB void | agg_count_distinct_bitmap_skip_val_gpu (int64_t *, const int64_t, const int64_t, const int64_t, const int64_t, const int64_t, const int64_t, const uint64_t, const uint64_t) |
RUNTIME_EXPORT ALWAYS_INLINE uint32_t | agg_count_int32 (uint32_t *agg, const int32_t) |
RUNTIME_EXPORT ALWAYS_INLINE uint32_t | agg_count_if_int32 (uint32_t *agg, const int32_t cond) |
RUNTIME_EXPORT ALWAYS_INLINE int32_t | agg_sum_int32 (int32_t *agg, const int32_t val) |
RUNTIME_EXPORT ALWAYS_INLINE int32_t | agg_sum_if_int32 (int32_t *agg, const int32_t val, const int8_t cond) |
RUNTIME_EXPORT ALWAYS_INLINE int64_t | agg_sum_skip_val (int64_t *agg, const int64_t val, const int64_t skip_val) |
RUNTIME_EXPORT ALWAYS_INLINE int32_t | agg_sum_int32_skip_val (int32_t *agg, const int32_t val, const int32_t skip_val) |
RUNTIME_EXPORT ALWAYS_INLINE int64_t | agg_sum_if_skip_val (int64_t *agg, const int64_t val, const int64_t skip_val, const int8_t cond) |
RUNTIME_EXPORT ALWAYS_INLINE int32_t | agg_sum_if_int32_skip_val (int32_t *agg, const int32_t val, const int32_t skip_val, const int8_t cond) |
RUNTIME_EXPORT ALWAYS_INLINE uint64_t | agg_count_if (uint64_t *agg, const int64_t cond) |
RUNTIME_EXPORT ALWAYS_INLINE uint64_t | agg_count_skip_val (uint64_t *agg, const int64_t val, const int64_t skip_val) |
RUNTIME_EXPORT ALWAYS_INLINE uint64_t | agg_count_if_skip_val (uint64_t *agg, const int64_t cond, const int64_t skip_val) |
RUNTIME_EXPORT ALWAYS_INLINE uint32_t | agg_count_int32_skip_val (uint32_t *agg, const int32_t val, const int32_t skip_val) |
RUNTIME_EXPORT ALWAYS_INLINE uint32_t | agg_count_if_int32_skip_val (uint32_t *agg, const int32_t cond, const int32_t skip_val) |
RUNTIME_EXPORT ALWAYS_INLINE uint64_t | agg_count_double (uint64_t *agg, const double val) |
RUNTIME_EXPORT ALWAYS_INLINE void | agg_sum_double (int64_t *agg, const double val) |
RUNTIME_EXPORT ALWAYS_INLINE void | agg_sum_if_double (int64_t *agg, const double val, const int8_t cond) |
RUNTIME_EXPORT ALWAYS_INLINE void | agg_max_double (int64_t *agg, const double val) |
RUNTIME_EXPORT ALWAYS_INLINE void | agg_min_double (int64_t *agg, const double val) |
RUNTIME_EXPORT ALWAYS_INLINE void | agg_id_double (int64_t *agg, const double val) |
RUNTIME_EXPORT ALWAYS_INLINE int32_t | checked_single_agg_id_double (int64_t *agg, const double val, const double null_val) |
RUNTIME_EXPORT ALWAYS_INLINE uint32_t | agg_count_float (uint32_t *agg, const float val) |
RUNTIME_EXPORT ALWAYS_INLINE void | agg_sum_float (int32_t *agg, const float val) |
RUNTIME_EXPORT ALWAYS_INLINE void | agg_if_sum_float (int32_t *agg, const float val, const int8_t cond) |
RUNTIME_EXPORT ALWAYS_INLINE void | agg_max_float (int32_t *agg, const float val) |
RUNTIME_EXPORT ALWAYS_INLINE void | agg_min_float (int32_t *agg, const float val) |
RUNTIME_EXPORT ALWAYS_INLINE void | agg_id_float (int32_t *agg, const float val) |
RUNTIME_EXPORT ALWAYS_INLINE int32_t | checked_single_agg_id_float (int32_t *agg, const float val, const float null_val) |
RUNTIME_EXPORT ALWAYS_INLINE uint64_t | agg_count_double_skip_val (uint64_t *agg, const double val, const double skip_val) |
RUNTIME_EXPORT ALWAYS_INLINE uint32_t | agg_count_float_skip_val (uint32_t *agg, const float val, const float skip_val) |
RUNTIME_EXPORT ALWAYS_INLINE int64_t | decimal_floor (const int64_t x, const int64_t scale) |
RUNTIME_EXPORT ALWAYS_INLINE int64_t | decimal_ceil (const int64_t x, const int64_t scale) |
GPU_RT_STUB int8_t * | agg_id_varlen_shared (int8_t *varlen_buffer, const int64_t offset, const int8_t *value, const int64_t size_bytes) |
GPU_RT_STUB int32_t | checked_single_agg_id_shared (int64_t *agg, const int64_t val, const int64_t null_val) |
GPU_RT_STUB int32_t | checked_single_agg_id_int32_shared (int32_t *agg, const int32_t val, const int32_t null_val) |
GPU_RT_STUB int32_t | checked_single_agg_id_int16_shared (int16_t *agg, const int16_t val, const int16_t null_val) |
GPU_RT_STUB int32_t | checked_single_agg_id_int8_shared (int8_t *agg, const int8_t val, const int8_t null_val) |
GPU_RT_STUB int32_t | checked_single_agg_id_double_shared (int64_t *agg, const double val, const double null_val) |
GPU_RT_STUB int32_t | checked_single_agg_id_float_shared (int32_t *agg, const float val, const float null_val) |
GPU_RT_STUB void | agg_max_int16_skip_val_shared (int16_t *agg, const int16_t val, const int16_t skip_val) |
GPU_RT_STUB void | agg_max_int8_skip_val_shared (int8_t *agg, const int8_t val, const int8_t skip_val) |
GPU_RT_STUB void | agg_min_int16_skip_val_shared (int16_t *agg, const int16_t val, const int16_t skip_val) |
GPU_RT_STUB void | agg_min_int8_skip_val_shared (int8_t *agg, const int8_t val, const int8_t skip_val) |
GPU_RT_STUB void | agg_id_double_shared_slow (int64_t *agg, const double *val) |
GPU_RT_STUB int64_t | agg_sum_shared (int64_t *agg, const int64_t val) |
GPU_RT_STUB int64_t | agg_sum_if_shared (int64_t *agg, const int64_t val, const int8_t cond) |
GPU_RT_STUB int64_t | agg_sum_skip_val_shared (int64_t *agg, const int64_t val, const int64_t skip_val) |
GPU_RT_STUB int64_t | agg_sum_if_skip_val_shared (int64_t *agg, const int64_t val, const int64_t skip_val, const int8_t cond) |
GPU_RT_STUB int32_t | agg_sum_int32_shared (int32_t *agg, const int32_t val) |
GPU_RT_STUB int32_t | agg_sum_int32_skip_val_shared (int32_t *agg, const int32_t val, const int32_t skip_val) |
GPU_RT_STUB void | agg_sum_double_shared (int64_t *agg, const double val) |
GPU_RT_STUB void | agg_sum_double_skip_val_shared (int64_t *agg, const double val, const double skip_val) |
GPU_RT_STUB void | agg_sum_float_shared (int32_t *agg, const float val) |
GPU_RT_STUB void | agg_sum_float_skip_val_shared (int32_t *agg, const float val, const float skip_val) |
GPU_RT_STUB int32_t | agg_sum_if_int32_shared (int32_t *agg, const int32_t val, const int8_t cond) |
GPU_RT_STUB int32_t | agg_sum_if_int32_skip_val_shared (int32_t *agg, const int32_t val, const int32_t skip_val, const int8_t cond) |
GPU_RT_STUB void | agg_sum_if_double_shared (int64_t *agg, const double val, const int8_t cond) |
GPU_RT_STUB void | agg_sum_if_double_skip_val_shared (int64_t *agg, const double val, const double skip_val, const int8_t cond) |
GPU_RT_STUB void | agg_sum_if_float_shared (int32_t *agg, const float val, const int8_t cond) |
GPU_RT_STUB void | agg_sum_if_float_skip_val_shared (int32_t *agg, const float val, const float skip_val, const int8_t cond) |
GPU_RT_STUB void | force_sync () |
GPU_RT_STUB void | sync_warp () |
GPU_RT_STUB void | sync_warp_protected (int64_t thread_pos, int64_t row_count) |
GPU_RT_STUB void | sync_threadblock () |
GPU_RT_STUB void | write_back_non_grouped_agg (int64_t *input_buffer, int64_t *output_buffer, const int32_t num_agg_cols) |
RUNTIME_EXPORT NEVER_INLINE int32_t | pos_start_impl (int32_t const *row_index_resume) |
RUNTIME_EXPORT NEVER_INLINE int32_t | group_buff_idx_impl () |
RUNTIME_EXPORT NEVER_INLINE int32_t | pos_step_impl () |
GPU_RT_STUB int8_t | thread_warp_idx (const int8_t warp_sz) |
GPU_RT_STUB int64_t | get_thread_index () |
GPU_RT_STUB int64_t * | declare_dynamic_shared_memory () |
GPU_RT_STUB int64_t | get_block_index () |
RUNTIME_EXPORT ALWAYS_INLINE void | record_error_code (const int32_t err_code, int32_t *error_codes) |
RUNTIME_EXPORT ALWAYS_INLINE int32_t | get_error_code (int32_t *error_codes) |
RUNTIME_EXPORT NEVER_INLINE const int64_t * | init_shared_mem_nop (const int64_t *groups_buffer, const int32_t groups_buffer_size) |
RUNTIME_EXPORT NEVER_INLINE void | write_back_nop (int64_t *dest, int64_t *src, const int32_t sz) |
RUNTIME_EXPORT int64_t * | init_shared_mem (const int64_t *global_groups_buffer, const int32_t groups_buffer_size) |
RUNTIME_EXPORT NEVER_INLINE void | init_group_by_buffer_gpu (int64_t *groups_buffer, const int64_t *init_vals, const uint32_t groups_buffer_entry_count, const uint32_t key_qw_count, const uint32_t agg_col_count, const bool keyless, const int8_t warp_size) |
RUNTIME_EXPORT NEVER_INLINE void | init_columnar_group_by_buffer_gpu (int64_t *groups_buffer, const int64_t *init_vals, const uint32_t groups_buffer_entry_count, const uint32_t key_qw_count, const uint32_t agg_col_count, const bool keyless, const bool blocks_share_memory, const int32_t frag_idx) |
RUNTIME_EXPORT NEVER_INLINE void | init_group_by_buffer_impl (int64_t *groups_buffer, const int64_t *init_vals, const uint32_t groups_buffer_entry_count, const uint32_t key_qw_count, const uint32_t agg_col_count, const bool keyless, const int8_t warp_size) |
template<typename T > | |
ALWAYS_INLINE int64_t * | get_matching_group_value (int64_t *groups_buffer, const uint32_t h, const T *key, const uint32_t key_count, const uint32_t row_size_quad) |
RUNTIME_EXPORT ALWAYS_INLINE int64_t * | get_matching_group_value (int64_t *groups_buffer, const uint32_t h, const int64_t *key, const uint32_t key_count, const uint32_t key_width, const uint32_t row_size_quad) |
template<typename T > | |
ALWAYS_INLINE int32_t | get_matching_group_value_columnar_slot (int64_t *groups_buffer, const uint32_t entry_count, const uint32_t h, const T *key, const uint32_t key_count) |
RUNTIME_EXPORT ALWAYS_INLINE int32_t | get_matching_group_value_columnar_slot (int64_t *groups_buffer, const uint32_t entry_count, const uint32_t h, const int64_t *key, const uint32_t key_count, const uint32_t key_width) |
RUNTIME_EXPORT ALWAYS_INLINE int64_t * | get_matching_group_value_columnar (int64_t *groups_buffer, const uint32_t h, const int64_t *key, const uint32_t key_qw_count, const size_t entry_count) |
RUNTIME_EXPORT ALWAYS_INLINE int64_t * | get_matching_group_value_perfect_hash (int64_t *groups_buffer, const uint32_t hashed_index, const int64_t *key, const uint32_t key_count, const uint32_t row_size_quad) |
RUNTIME_EXPORT ALWAYS_INLINE int64_t * | get_matching_group_value_perfect_hash_keyless (int64_t *groups_buffer, const uint32_t hashed_index, const uint32_t row_size_quad) |
RUNTIME_EXPORT ALWAYS_INLINE void | set_matching_group_value_perfect_hash_columnar (int64_t *groups_buffer, const uint32_t hashed_index, const int64_t *key, const uint32_t key_count, const uint32_t entry_count) |
RUNTIME_EXPORT ALWAYS_INLINE int64_t * | get_group_value_fast_keyless (int64_t *groups_buffer, const int64_t key, const int64_t min_key, const int64_t, const uint32_t row_size_quad) |
RUNTIME_EXPORT ALWAYS_INLINE int64_t * | get_group_value_fast_keyless_semiprivate (int64_t *groups_buffer, const int64_t key, const int64_t min_key, const int64_t, const uint32_t row_size_quad, const uint8_t thread_warp_idx, const uint8_t warp_size) |
RUNTIME_EXPORT ALWAYS_INLINE StringView | string_pack (const int8_t *ptr, const int32_t len) |
RUNTIME_EXPORT ALWAYS_INLINE DEVICE int32_t | char_length (const char *str, const int32_t str_len) |
RUNTIME_EXPORT ALWAYS_INLINE DEVICE int32_t | char_length_nullable (const char *str, const int32_t str_len, const int32_t int_null) |
RUNTIME_EXPORT ALWAYS_INLINE DEVICE int32_t | key_for_string_encoded (const int32_t str_id) |
ALWAYS_INLINE DEVICE int32_t | map_string_dict_id (const int32_t string_id, const int64_t translation_map_handle, const int32_t min_source_id) |
ALWAYS_INLINE DEVICE double | tree_model_reg_predict (const double *regressor_inputs, const int64_t decision_tree_table_handle, const int64_t decision_tree_offsets_handle, const int32_t num_regressors, const int32_t num_trees, const bool compute_avg, const double null_value) |
RUNTIME_EXPORT ALWAYS_INLINE DEVICE bool | sample_ratio (const double proportion, const int64_t row_offset) |
RUNTIME_EXPORT ALWAYS_INLINE DEVICE int32_t | width_bucket (const double target_value, const double lower_bound, const double upper_bound, const double scale_factor, const int32_t partition_count) |
RUNTIME_EXPORT ALWAYS_INLINE DEVICE int32_t | width_bucket_reversed (const double target_value, const double lower_bound, const double upper_bound, const double scale_factor, const int32_t partition_count) |
RUNTIME_EXPORT ALWAYS_INLINE int32_t | width_bucket_nullable (const double target_value, const double lower_bound, const double upper_bound, const double scale_factor, const int32_t partition_count, const double null_val) |
RUNTIME_EXPORT ALWAYS_INLINE int32_t | width_bucket_reversed_nullable (const double target_value, const double lower_bound, const double upper_bound, const double scale_factor, const int32_t partition_count, const double null_val) |
RUNTIME_EXPORT ALWAYS_INLINE DEVICE int32_t | width_bucket_no_oob_check (const double target_value, const double lower_bound, const double scale_factor) |
RUNTIME_EXPORT ALWAYS_INLINE DEVICE int32_t | width_bucket_reversed_no_oob_check (const double target_value, const double lower_bound, const double scale_factor) |
RUNTIME_EXPORT ALWAYS_INLINE DEVICE int32_t | width_bucket_expr (const double target_value, const bool reversed, const double lower_bound, const double upper_bound, const int32_t partition_count) |
RUNTIME_EXPORT ALWAYS_INLINE DEVICE int32_t | width_bucket_expr_nullable (const double target_value, const bool reversed, const double lower_bound, const double upper_bound, const int32_t partition_count, const double null_val) |
RUNTIME_EXPORT ALWAYS_INLINE DEVICE int32_t | width_bucket_expr_no_oob_check (const double target_value, const bool reversed, const double lower_bound, const double upper_bound, const int32_t partition_count) |
RUNTIME_EXPORT ALWAYS_INLINE int64_t | row_number_window_func (const int64_t output_buff, const int64_t pos) |
RUNTIME_EXPORT ALWAYS_INLINE double | percent_window_func (const int64_t output_buff, const int64_t pos) |
RUNTIME_EXPORT ALWAYS_INLINE double | load_double (const int64_t *agg) |
RUNTIME_EXPORT ALWAYS_INLINE float | load_float (const int32_t *agg) |
RUNTIME_EXPORT ALWAYS_INLINE double | load_avg_int (const int64_t *sum, const int64_t *count, const double null_val) |
RUNTIME_EXPORT ALWAYS_INLINE double | load_avg_decimal (const int64_t *sum, const int64_t *count, const double null_val, const uint32_t scale) |
RUNTIME_EXPORT ALWAYS_INLINE double | load_avg_double (const int64_t *agg, const int64_t *count, const double null_val) |
RUNTIME_EXPORT ALWAYS_INLINE double | load_avg_float (const int32_t *agg, const int32_t *count, const double null_val) |
RUNTIME_EXPORT NEVER_INLINE void | linear_probabilistic_count (uint8_t *bitmap, const uint32_t bitmap_bytes, const uint8_t *key_bytes, const uint32_t key_len) |
RUNTIME_EXPORT NEVER_INLINE void | query_stub_hoisted_literals (int32_t *error_codes, int32_t *total_matched, int64_t **out, const uint32_t frag_idx, const uint32_t *row_index_resume, const int8_t **col_buffers, const int8_t *literals, const int64_t *num_rows, const uint64_t *frag_row_offsets, const int32_t *max_matched, const int64_t *init_agg_value, const int64_t *join_hash_tables, const int8_t *row_func_mgr) |
RUNTIME_EXPORT void | multifrag_query_hoisted_literals (int32_t *error_codes, int32_t *total_matched, int64_t **out, const uint32_t *num_fragments_ptr, const uint32_t *num_tables_ptr, const uint32_t *row_index_resume, const int8_t ***col_buffers, const int8_t *literals, const int64_t *num_rows, const uint64_t *frag_row_offsets, const int32_t *max_matched, const int64_t *init_agg_value, const int64_t *join_hash_tables, const int8_t *row_func_mgr) |
RUNTIME_EXPORT NEVER_INLINE void | query_stub (int32_t *error_codes, int32_t *total_matched, int64_t **out, const uint32_t frag_idx, const uint32_t *row_index_resume, const int8_t **col_buffers, const int64_t *num_rows, const uint64_t *frag_row_offsets, const int32_t *max_matched, const int64_t *init_agg_value, const int64_t *join_hash_tables, const int8_t *row_func_mgr) |
RUNTIME_EXPORT void | multifrag_query (int32_t *error_codes, int32_t *total_matched, int64_t **out, const uint32_t *num_fragments_ptr, const uint32_t *num_tables_ptr, const uint32_t *row_index_resume, const int8_t ***col_buffers, const int64_t *num_rows, const uint64_t *frag_row_offsets, const int32_t *max_matched, const int64_t *init_agg_value, const int64_t *join_hash_tables, const int8_t *row_func_mgr) |
RUNTIME_EXPORT ALWAYS_INLINE DEVICE bool | point_int32_is_null (int32_t *point) |
RUNTIME_EXPORT ALWAYS_INLINE DEVICE bool | point_double_is_null (double *point) |
RUNTIME_EXPORT ALWAYS_INLINE DEVICE bool | check_interrupt () |
RUNTIME_EXPORT bool | check_interrupt_init (unsigned command) |
#define ADDR_T int64_t |
Definition at line 1569 of file RuntimeFunctions.cpp.
#define ADDR_T int32_t |
Definition at line 1569 of file RuntimeFunctions.cpp.
#define DATA_T int64_t |
Definition at line 1568 of file RuntimeFunctions.cpp.
#define DATA_T int32_t |
Definition at line 1568 of file RuntimeFunctions.cpp.
#define DATA_T int16_t |
Definition at line 1568 of file RuntimeFunctions.cpp.
#define DATA_T int8_t |
Definition at line 1568 of file RuntimeFunctions.cpp.
#define DATA_T double |
Definition at line 1568 of file RuntimeFunctions.cpp.
#define DATA_T float |
Definition at line 1568 of file RuntimeFunctions.cpp.
#define DEF_AGG_ID_INT | ( | n | ) |
Definition at line 1245 of file RuntimeFunctions.cpp.
#define DEF_AGG_MAX_INT | ( | n | ) |
Definition at line 1223 of file RuntimeFunctions.cpp.
#define DEF_AGG_MIN_INT | ( | n | ) |
Definition at line 1234 of file RuntimeFunctions.cpp.
#define DEF_ARITH_NULLABLE | ( | type, | |
null_type, | |||
opname, | |||
opsym | |||
) |
Definition at line 46 of file RuntimeFunctions.cpp.
#define DEF_ARITH_NULLABLE_LHS | ( | type, | |
null_type, | |||
opname, | |||
opsym | |||
) |
Definition at line 55 of file RuntimeFunctions.cpp.
#define DEF_ARITH_NULLABLE_RHS | ( | type, | |
null_type, | |||
opname, | |||
opsym | |||
) |
Definition at line 64 of file RuntimeFunctions.cpp.
#define DEF_BINARY_NULLABLE_ALL_OPS | ( | type, | |
null_type | |||
) |
Definition at line 118 of file RuntimeFunctions.cpp.
#define DEF_CAST_NULLABLE | ( | from_type, | |
to_type | |||
) |
Definition at line 262 of file RuntimeFunctions.cpp.
#define DEF_CAST_NULLABLE_BIDIR | ( | type1, | |
type2 | |||
) |
Definition at line 279 of file RuntimeFunctions.cpp.
#define DEF_CAST_SCALED_NULLABLE | ( | from_type, | |
to_type | |||
) |
Definition at line 270 of file RuntimeFunctions.cpp.
#define DEF_CHECKED_SINGLE_AGG_ID_INT | ( | n | ) |
Definition at line 1251 of file RuntimeFunctions.cpp.
#define DEF_CMP_NULLABLE | ( | type, | |
null_type, | |||
opname, | |||
opsym | |||
) |
Definition at line 73 of file RuntimeFunctions.cpp.
#define DEF_CMP_NULLABLE_LHS | ( | type, | |
null_type, | |||
opname, | |||
opsym | |||
) |
Definition at line 85 of file RuntimeFunctions.cpp.
#define DEF_CMP_NULLABLE_RHS | ( | type, | |
null_type, | |||
opname, | |||
opsym | |||
) |
Definition at line 97 of file RuntimeFunctions.cpp.
#define DEF_COMPUTE_CURRENT_ROW_IDX_IN_FRAME | ( | value_type, | |
oper_name | |||
) |
Definition at line 501 of file RuntimeFunctions.cpp.
#define DEF_COMPUTE_CURRENT_ROW_IDX_IN_FRAME_ALL_TYPES | ( | oper_name | ) |
Definition at line 524 of file RuntimeFunctions.cpp.
#define DEF_FILL_MISSING_VALUE | ( | col_type | ) |
Definition at line 1103 of file RuntimeFunctions.cpp.
#define DEF_GET_VALUE_IN_FRAME | ( | col_type, | |
logical_type | |||
) |
Definition at line 722 of file RuntimeFunctions.cpp.
#define DEF_HANDLE_NULL_FOR_WINDOW_FRAMING_AGG | ( | agg_type, | |
null_type | |||
) |
Definition at line 1060 of file RuntimeFunctions.cpp.
#define DEF_MAP_STRING_TO_DATUM | ( | value_type, | |
value_name | |||
) |
Definition at line 179 of file RuntimeFunctions.cpp.
#define DEF_RANGE_MODE_FRAME_LOWER_BOUND | ( | target_val_type, | |
col_type, | |||
null_type, | |||
opname, | |||
opsym | |||
) |
Definition at line 566 of file RuntimeFunctions.cpp.
#define DEF_RANGE_MODE_FRAME_UPPER_BOUND | ( | target_val_type, | |
col_type, | |||
null_type, | |||
opname, | |||
opsym | |||
) |
Definition at line 647 of file RuntimeFunctions.cpp.
#define DEF_ROUND_NULLABLE | ( | from_type, | |
to_type | |||
) |
Definition at line 283 of file RuntimeFunctions.cpp.
#define DEF_SAFE_DIV_NULLABLE | ( | type, | |
null_type, | |||
opname | |||
) |
Definition at line 109 of file RuntimeFunctions.cpp.
#define DEF_SEARCH_AGGREGATION_TREE | ( | agg_value_type | ) |
Definition at line 901 of file RuntimeFunctions.cpp.
#define DEF_SEARCH_DERIVED_AGGREGATION_TREE | ( | agg_value_type | ) |
Definition at line 1019 of file RuntimeFunctions.cpp.
#define DEF_SHARED_AGG_RET_STUBS | ( | base_agg_func | ) |
Definition at line 1598 of file RuntimeFunctions.cpp.
#define DEF_SHARED_AGG_STUBS | ( | base_agg_func | ) |
Definition at line 1637 of file RuntimeFunctions.cpp.
#define DEF_SKIP_AGG | ( | base_agg_func | ) |
Definition at line 1538 of file RuntimeFunctions.cpp.
#define DEF_SKIP_AGG | ( | base_agg_func | ) |
Definition at line 1538 of file RuntimeFunctions.cpp.
#define DEF_SKIP_AGG_ADD | ( | base_agg_func | ) |
Definition at line 1371 of file RuntimeFunctions.cpp.
#define DEF_SKIP_IF_AGG | ( | skip_agg_func, | |
base_agg_func | |||
) |
Definition at line 1551 of file RuntimeFunctions.cpp.
#define DEF_UMINUS_NULLABLE | ( | type, | |
null_type | |||
) |
Definition at line 247 of file RuntimeFunctions.cpp.
#define DEF_WRITE_PROJECTION_INT | ( | n | ) |
Definition at line 1279 of file RuntimeFunctions.cpp.
#define GPU_RT_STUB NEVER_INLINE __attribute__((optnone)) |
Definition at line 381 of file RuntimeFunctions.cpp.
RUNTIME_EXPORT NEVER_INLINE void agg_approximate_count_distinct | ( | int64_t * | agg, |
const int64_t | key, | ||
const uint32_t | b | ||
) |
Definition at line 394 of file RuntimeFunctions.cpp.
References get_rank(), and MurmurHash64A().
GPU_RT_STUB void agg_approximate_count_distinct_gpu | ( | int64_t * | , |
const int64_t | , | ||
const uint32_t | , | ||
const int64_t | , | ||
const int64_t | |||
) |
Definition at line 402 of file RuntimeFunctions.cpp.
RUNTIME_EXPORT ALWAYS_INLINE uint64_t agg_count | ( | uint64_t * | agg, |
const int64_t | |||
) |
Definition at line 362 of file RuntimeFunctions.cpp.
Referenced by agg_count_skip_val(), and anonymous_namespace{GroupByAndAggregate.cpp}::get_agg_count().
RUNTIME_EXPORT ALWAYS_INLINE void agg_count_distinct_bitmap | ( | int64_t * | agg, |
const int64_t | val, | ||
const int64_t | min_val, | ||
const int64_t | bucket_size | ||
) |
Definition at line 366 of file RuntimeFunctions.cpp.
Referenced by agg_count_distinct_bitmap_skip_val(), WindowFunctionContext::fillPartitionEnd(), WindowFunctionContext::fillPartitionStart(), anonymous_namespace{WindowContext.cpp}::index_to_partition_end(), and InValuesBitmap::InValuesBitmap().
GPU_RT_STUB void agg_count_distinct_bitmap_gpu | ( | int64_t * | , |
const int64_t | , | ||
const int64_t | , | ||
const int64_t | , | ||
const int64_t | , | ||
const int64_t | , | ||
const uint64_t | , | ||
const uint64_t | |||
) |
Definition at line 384 of file RuntimeFunctions.cpp.
RUNTIME_EXPORT ALWAYS_INLINE void agg_count_distinct_bitmap_skip_val | ( | int64_t * | agg, |
const int64_t | val, | ||
const int64_t | min_val, | ||
const int64_t | bucket_size, | ||
const int64_t | skip_val | ||
) |
Definition at line 1179 of file RuntimeFunctions.cpp.
References agg_count_distinct_bitmap().
GPU_RT_STUB void agg_count_distinct_bitmap_skip_val_gpu | ( | int64_t * | , |
const int64_t | , | ||
const int64_t | , | ||
const int64_t | , | ||
const int64_t | , | ||
const int64_t | , | ||
const int64_t | , | ||
const uint64_t | , | ||
const uint64_t | |||
) |
Definition at line 1190 of file RuntimeFunctions.cpp.
RUNTIME_EXPORT ALWAYS_INLINE uint64_t agg_count_double | ( | uint64_t * | agg, |
const double | val | ||
) |
Definition at line 1417 of file RuntimeFunctions.cpp.
Referenced by agg_count_double_skip_val().
RUNTIME_EXPORT ALWAYS_INLINE uint64_t agg_count_double_skip_val | ( | uint64_t * | agg, |
const double | val, | ||
const double | skip_val | ||
) |
Definition at line 1523 of file RuntimeFunctions.cpp.
References agg_count_double().
RUNTIME_EXPORT ALWAYS_INLINE uint32_t agg_count_float | ( | uint32_t * | agg, |
const float | val | ||
) |
Definition at line 1470 of file RuntimeFunctions.cpp.
Referenced by agg_count_float_skip_val().
RUNTIME_EXPORT ALWAYS_INLINE uint32_t agg_count_float_skip_val | ( | uint32_t * | agg, |
const float | val, | ||
const float | skip_val | ||
) |
Definition at line 1531 of file RuntimeFunctions.cpp.
References agg_count_float().
RUNTIME_EXPORT ALWAYS_INLINE uint64_t agg_count_if | ( | uint64_t * | agg, |
const int64_t | cond | ||
) |
Definition at line 1334 of file RuntimeFunctions.cpp.
Referenced by agg_count_if_skip_val().
RUNTIME_EXPORT ALWAYS_INLINE uint32_t agg_count_if_int32 | ( | uint32_t * | agg, |
const int32_t | cond | ||
) |
Definition at line 1205 of file RuntimeFunctions.cpp.
Referenced by agg_count_if_int32_skip_val().
RUNTIME_EXPORT ALWAYS_INLINE uint32_t agg_count_if_int32_skip_val | ( | uint32_t * | agg, |
const int32_t | cond, | ||
const int32_t | skip_val | ||
) |
Definition at line 1364 of file RuntimeFunctions.cpp.
References agg_count_if_int32().
RUNTIME_EXPORT ALWAYS_INLINE uint64_t agg_count_if_skip_val | ( | uint64_t * | agg, |
const int64_t | cond, | ||
const int64_t | skip_val | ||
) |
Definition at line 1348 of file RuntimeFunctions.cpp.
References agg_count_if().
RUNTIME_EXPORT ALWAYS_INLINE uint32_t agg_count_int32 | ( | uint32_t * | agg, |
const int32_t | |||
) |
Definition at line 1200 of file RuntimeFunctions.cpp.
Referenced by agg_count_int32_skip_val().
RUNTIME_EXPORT ALWAYS_INLINE uint32_t agg_count_int32_skip_val | ( | uint32_t * | agg, |
const int32_t | val, | ||
const int32_t | skip_val | ||
) |
Definition at line 1356 of file RuntimeFunctions.cpp.
References agg_count_int32().
RUNTIME_EXPORT ALWAYS_INLINE uint64_t agg_count_skip_val | ( | uint64_t * | agg, |
const int64_t | val, | ||
const int64_t | skip_val | ||
) |
Definition at line 1340 of file RuntimeFunctions.cpp.
References agg_count().
RUNTIME_EXPORT ALWAYS_INLINE void agg_id | ( | int64_t * | agg, |
const int64_t | val | ||
) |
Definition at line 1148 of file RuntimeFunctions.cpp.
RUNTIME_EXPORT ALWAYS_INLINE void agg_id_double | ( | int64_t * | agg, |
const double | val | ||
) |
Definition at line 1448 of file RuntimeFunctions.cpp.
GPU_RT_STUB void agg_id_double_shared_slow | ( | int64_t * | agg, |
const double * | val | ||
) |
Definition at line 1729 of file RuntimeFunctions.cpp.
RUNTIME_EXPORT ALWAYS_INLINE void agg_id_float | ( | int32_t * | agg, |
const float | val | ||
) |
Definition at line 1501 of file RuntimeFunctions.cpp.
RUNTIME_EXPORT ALWAYS_INLINE int8_t* agg_id_varlen | ( | int8_t * | varlen_buffer, |
const int64_t | offset, | ||
const int8_t * | value, | ||
const int64_t | size_bytes | ||
) |
Definition at line 1152 of file RuntimeFunctions.cpp.
GPU_RT_STUB int8_t* agg_id_varlen_shared | ( | int8_t * | varlen_buffer, |
const int64_t | offset, | ||
const int8_t * | value, | ||
const int64_t | size_bytes | ||
) |
Definition at line 1669 of file RuntimeFunctions.cpp.
RUNTIME_EXPORT ALWAYS_INLINE void agg_if_sum_float | ( | int32_t * | agg, |
const float | val, | ||
const int8_t | cond | ||
) |
Definition at line 1481 of file RuntimeFunctions.cpp.
References agg_sum_float().
RUNTIME_EXPORT ALWAYS_INLINE void agg_max | ( | int64_t * | agg, |
const int64_t | val | ||
) |
Definition at line 1140 of file RuntimeFunctions.cpp.
RUNTIME_EXPORT ALWAYS_INLINE void agg_max_double | ( | int64_t * | agg, |
const double | val | ||
) |
Definition at line 1436 of file RuntimeFunctions.cpp.
RUNTIME_EXPORT ALWAYS_INLINE void agg_max_float | ( | int32_t * | agg, |
const float | val | ||
) |
Definition at line 1489 of file RuntimeFunctions.cpp.
GPU_RT_STUB void agg_max_int16_skip_val_shared | ( | int16_t * | agg, |
const int16_t | val, | ||
const int16_t | skip_val | ||
) |
Definition at line 1713 of file RuntimeFunctions.cpp.
GPU_RT_STUB void agg_max_int8_skip_val_shared | ( | int8_t * | agg, |
const int8_t | val, | ||
const int8_t | skip_val | ||
) |
Definition at line 1717 of file RuntimeFunctions.cpp.
RUNTIME_EXPORT ALWAYS_INLINE void agg_min | ( | int64_t * | agg, |
const int64_t | val | ||
) |
Definition at line 1144 of file RuntimeFunctions.cpp.
RUNTIME_EXPORT ALWAYS_INLINE void agg_min_double | ( | int64_t * | agg, |
const double | val | ||
) |
Definition at line 1442 of file RuntimeFunctions.cpp.
RUNTIME_EXPORT ALWAYS_INLINE void agg_min_float | ( | int32_t * | agg, |
const float | val | ||
) |
Definition at line 1495 of file RuntimeFunctions.cpp.
GPU_RT_STUB void agg_min_int16_skip_val_shared | ( | int16_t * | agg, |
const int16_t | val, | ||
const int16_t | skip_val | ||
) |
Definition at line 1721 of file RuntimeFunctions.cpp.
GPU_RT_STUB void agg_min_int8_skip_val_shared | ( | int8_t * | agg, |
const int8_t | val, | ||
const int8_t | skip_val | ||
) |
Definition at line 1725 of file RuntimeFunctions.cpp.
RUNTIME_EXPORT ALWAYS_INLINE int64_t agg_sum | ( | int64_t * | agg, |
const int64_t | val | ||
) |
Definition at line 1128 of file RuntimeFunctions.cpp.
Referenced by agg_sum_if(), and agg_sum_skip_val().
RUNTIME_EXPORT ALWAYS_INLINE void agg_sum_double | ( | int64_t * | agg, |
const double | val | ||
) |
Definition at line 1422 of file RuntimeFunctions.cpp.
Referenced by agg_sum_if_double().
GPU_RT_STUB void agg_sum_double_shared | ( | int64_t * | agg, |
const double | val | ||
) |
Definition at line 1763 of file RuntimeFunctions.cpp.
GPU_RT_STUB void agg_sum_double_skip_val_shared | ( | int64_t * | agg, |
const double | val, | ||
const double | skip_val | ||
) |
Definition at line 1765 of file RuntimeFunctions.cpp.
RUNTIME_EXPORT ALWAYS_INLINE void agg_sum_float | ( | int32_t * | agg, |
const float | val | ||
) |
Definition at line 1475 of file RuntimeFunctions.cpp.
Referenced by agg_if_sum_float().
GPU_RT_STUB void agg_sum_float_shared | ( | int32_t * | agg, |
const float | val | ||
) |
Definition at line 1768 of file RuntimeFunctions.cpp.
GPU_RT_STUB void agg_sum_float_skip_val_shared | ( | int32_t * | agg, |
const float | val, | ||
const float | skip_val | ||
) |
Definition at line 1770 of file RuntimeFunctions.cpp.
RUNTIME_EXPORT ALWAYS_INLINE int64_t agg_sum_if | ( | int64_t * | agg, |
const int64_t | val, | ||
const int8_t | cond | ||
) |
Definition at line 1134 of file RuntimeFunctions.cpp.
References agg_sum().
RUNTIME_EXPORT ALWAYS_INLINE void agg_sum_if_double | ( | int64_t * | agg, |
const double | val, | ||
const int8_t | cond | ||
) |
Definition at line 1428 of file RuntimeFunctions.cpp.
References agg_sum_double().
GPU_RT_STUB void agg_sum_if_double_shared | ( | int64_t * | agg, |
const double | val, | ||
const int8_t | cond | ||
) |
Definition at line 1787 of file RuntimeFunctions.cpp.
GPU_RT_STUB void agg_sum_if_double_skip_val_shared | ( | int64_t * | agg, |
const double | val, | ||
const double | skip_val, | ||
const int8_t | cond | ||
) |
Definition at line 1791 of file RuntimeFunctions.cpp.
GPU_RT_STUB void agg_sum_if_float_shared | ( | int32_t * | agg, |
const float | val, | ||
const int8_t | cond | ||
) |
Definition at line 1795 of file RuntimeFunctions.cpp.
GPU_RT_STUB void agg_sum_if_float_skip_val_shared | ( | int32_t * | agg, |
const float | val, | ||
const float | skip_val, | ||
const int8_t | cond | ||
) |
Definition at line 1799 of file RuntimeFunctions.cpp.
RUNTIME_EXPORT ALWAYS_INLINE int32_t agg_sum_if_int32 | ( | int32_t * | agg, |
const int32_t | val, | ||
const int8_t | cond | ||
) |
Definition at line 1217 of file RuntimeFunctions.cpp.
References agg_sum_int32().
GPU_RT_STUB int32_t agg_sum_if_int32_shared | ( | int32_t * | agg, |
const int32_t | val, | ||
const int8_t | cond | ||
) |
Definition at line 1774 of file RuntimeFunctions.cpp.
RUNTIME_EXPORT ALWAYS_INLINE int32_t agg_sum_if_int32_skip_val | ( | int32_t * | agg, |
const int32_t | val, | ||
const int32_t | skip_val, | ||
const int8_t | cond | ||
) |
Definition at line 1327 of file RuntimeFunctions.cpp.
References agg_sum_int32_skip_val().
GPU_RT_STUB int32_t agg_sum_if_int32_skip_val_shared | ( | int32_t * | agg, |
const int32_t | val, | ||
const int32_t | skip_val, | ||
const int8_t | cond | ||
) |
Definition at line 1780 of file RuntimeFunctions.cpp.
GPU_RT_STUB int64_t agg_sum_if_shared | ( | int64_t * | agg, |
const int64_t | val, | ||
const int8_t | cond | ||
) |
Definition at line 1735 of file RuntimeFunctions.cpp.
RUNTIME_EXPORT ALWAYS_INLINE int64_t agg_sum_if_skip_val | ( | int64_t * | agg, |
const int64_t | val, | ||
const int64_t | skip_val, | ||
const int8_t | cond | ||
) |
Definition at line 1319 of file RuntimeFunctions.cpp.
References agg_sum_skip_val().
GPU_RT_STUB int64_t agg_sum_if_skip_val_shared | ( | int64_t * | agg, |
const int64_t | val, | ||
const int64_t | skip_val, | ||
const int8_t | cond | ||
) |
Definition at line 1747 of file RuntimeFunctions.cpp.
RUNTIME_EXPORT ALWAYS_INLINE int32_t agg_sum_int32 | ( | int32_t * | agg, |
const int32_t | val | ||
) |
Definition at line 1210 of file RuntimeFunctions.cpp.
Referenced by agg_sum_if_int32(), and agg_sum_int32_skip_val().
GPU_RT_STUB int32_t agg_sum_int32_shared | ( | int32_t * | agg, |
const int32_t | val | ||
) |
Definition at line 1753 of file RuntimeFunctions.cpp.
RUNTIME_EXPORT ALWAYS_INLINE int32_t agg_sum_int32_skip_val | ( | int32_t * | agg, |
const int32_t | val, | ||
const int32_t | skip_val | ||
) |
Definition at line 1306 of file RuntimeFunctions.cpp.
References agg_sum_int32().
Referenced by agg_sum_if_int32_skip_val().
GPU_RT_STUB int32_t agg_sum_int32_skip_val_shared | ( | int32_t * | agg, |
const int32_t | val, | ||
const int32_t | skip_val | ||
) |
Definition at line 1757 of file RuntimeFunctions.cpp.
GPU_RT_STUB int64_t agg_sum_shared | ( | int64_t * | agg, |
const int64_t | val | ||
) |
Definition at line 1731 of file RuntimeFunctions.cpp.
RUNTIME_EXPORT ALWAYS_INLINE int64_t agg_sum_skip_val | ( | int64_t * | agg, |
const int64_t | val, | ||
const int64_t | skip_val | ||
) |
Definition at line 1291 of file RuntimeFunctions.cpp.
References agg_sum().
Referenced by agg_sum_if_skip_val(), and Executor::reduceResults().
GPU_RT_STUB int64_t agg_sum_skip_val_shared | ( | int64_t * | agg, |
const int64_t | val, | ||
const int64_t | skip_val | ||
) |
Definition at line 1741 of file RuntimeFunctions.cpp.
RUNTIME_EXPORT ALWAYS_INLINE int8_t bit_is_set | ( | const int8_t * | bitset, |
const int64_t | val, | ||
const int64_t | min_val, | ||
const int64_t | max_val, | ||
const int64_t | null_val, | ||
const int8_t | null_bool_val | ||
) |
Definition at line 408 of file RuntimeFunctions.cpp.
RUNTIME_EXPORT ALWAYS_INLINE DEVICE int32_t char_length | ( | const char * | str, |
const int32_t | str_len | ||
) |
Definition at line 2136 of file RuntimeFunctions.cpp.
Referenced by ScalarExprVisitor< std::set< shared::TableKey > >::visit().
RUNTIME_EXPORT ALWAYS_INLINE DEVICE int32_t char_length_nullable | ( | const char * | str, |
const int32_t | str_len, | ||
const int32_t | int_null | ||
) |
Definition at line 2141 of file RuntimeFunctions.cpp.
RUNTIME_EXPORT ALWAYS_INLINE DEVICE bool check_interrupt | ( | ) |
Definition at line 2516 of file RuntimeFunctions.cpp.
References check_interrupt_init(), INT_CHECK, and runtime_interrupt_flag.
RUNTIME_EXPORT bool check_interrupt_init | ( | unsigned | command | ) |
Definition at line 2523 of file RuntimeFunctions.cpp.
References INT_ABORT, INT_CHECK, INT_RESET, and runtime_interrupt_flag.
Referenced by check_interrupt(), Executor::interrupt(), and Executor::resetInterrupt().
RUNTIME_EXPORT ALWAYS_INLINE int32_t checked_single_agg_id | ( | int64_t * | agg, |
const int64_t | val, | ||
const int64_t | null_val | ||
) |
Definition at line 1163 of file RuntimeFunctions.cpp.
RUNTIME_EXPORT ALWAYS_INLINE int32_t checked_single_agg_id_double | ( | int64_t * | agg, |
const double | val, | ||
const double | null_val | ||
) |
Definition at line 1454 of file RuntimeFunctions.cpp.
GPU_RT_STUB int32_t checked_single_agg_id_double_shared | ( | int64_t * | agg, |
const double | val, | ||
const double | null_val | ||
) |
Definition at line 1701 of file RuntimeFunctions.cpp.
RUNTIME_EXPORT ALWAYS_INLINE int32_t checked_single_agg_id_float | ( | int32_t * | agg, |
const float | val, | ||
const float | null_val | ||
) |
Definition at line 1506 of file RuntimeFunctions.cpp.
GPU_RT_STUB int32_t checked_single_agg_id_float_shared | ( | int32_t * | agg, |
const float | val, | ||
const float | null_val | ||
) |
Definition at line 1707 of file RuntimeFunctions.cpp.
GPU_RT_STUB int32_t checked_single_agg_id_int16_shared | ( | int16_t * | agg, |
const int16_t | val, | ||
const int16_t | null_val | ||
) |
Definition at line 1689 of file RuntimeFunctions.cpp.
GPU_RT_STUB int32_t checked_single_agg_id_int32_shared | ( | int32_t * | agg, |
const int32_t | val, | ||
const int32_t | null_val | ||
) |
Definition at line 1683 of file RuntimeFunctions.cpp.
GPU_RT_STUB int32_t checked_single_agg_id_int8_shared | ( | int8_t * | agg, |
const int8_t | val, | ||
const int8_t | null_val | ||
) |
Definition at line 1694 of file RuntimeFunctions.cpp.
GPU_RT_STUB int32_t checked_single_agg_id_shared | ( | int64_t * | agg, |
const int64_t | val, | ||
const int64_t | null_val | ||
) |
Definition at line 1676 of file RuntimeFunctions.cpp.
|
inline |
Definition at line 457 of file RuntimeFunctions.cpp.
References get_valid_buf_end_pos(), and get_valid_buf_start_pos().
|
inline |
Definition at line 956 of file RuntimeFunctions.cpp.
References SumAndCountPair< T >::count, getStartOffsetForSegmentTreeTraversal(), and SumAndCountPair< T >::sum.
RUNTIME_EXPORT ALWAYS_INLINE int64_t compute_int64_t_lower_bound | ( | const int64_t | entry_cnt, |
const int64_t | target_value, | ||
const int64_t * | col_buf | ||
) |
Definition at line 428 of file RuntimeFunctions.cpp.
|
inline |
Definition at line 539 of file RuntimeFunctions.cpp.
References get_valid_buf_end_pos(), and get_valid_buf_start_pos().
RUNTIME_EXPORT ALWAYS_INLINE int64_t compute_row_mode_end_index_add | ( | int64_t | candidate_index, |
int64_t | current_partition_start_offset, | ||
int64_t | frame_bound, | ||
int64_t | num_current_partition_elem | ||
) |
Definition at line 788 of file RuntimeFunctions.cpp.
RUNTIME_EXPORT ALWAYS_INLINE int64_t compute_row_mode_end_index_sub | ( | int64_t | candidate_index, |
int64_t | current_partition_start_offset, | ||
int64_t | frame_bound | ||
) |
Definition at line 780 of file RuntimeFunctions.cpp.
RUNTIME_EXPORT ALWAYS_INLINE int64_t compute_row_mode_start_index_add | ( | int64_t | candidate_index, |
int64_t | current_partition_start_offset, | ||
int64_t | frame_bound, | ||
int64_t | num_current_partition_elem | ||
) |
Definition at line 771 of file RuntimeFunctions.cpp.
RUNTIME_EXPORT ALWAYS_INLINE int64_t compute_row_mode_start_index_sub | ( | int64_t | candidate_index, |
int64_t | current_partition_start_offset, | ||
int64_t | frame_bound | ||
) |
Definition at line 763 of file RuntimeFunctions.cpp.
|
inline |
Definition at line 620 of file RuntimeFunctions.cpp.
References get_valid_buf_end_pos(), and get_valid_buf_start_pos().
|
inline |
Definition at line 847 of file RuntimeFunctions.cpp.
References getStartOffsetForSegmentTreeTraversal(), and run_benchmark_import::res.
RUNTIME_EXPORT ALWAYS_INLINE int64_t decimal_ceil | ( | const int64_t | x, |
const int64_t | scale | ||
) |
Definition at line 1591 of file RuntimeFunctions.cpp.
References decimal_floor().
RUNTIME_EXPORT ALWAYS_INLINE int64_t decimal_floor | ( | const int64_t | x, |
const int64_t | scale | ||
) |
Definition at line 1580 of file RuntimeFunctions.cpp.
Referenced by decimal_ceil().
GPU_RT_STUB int64_t* declare_dynamic_shared_memory | ( | ) |
Definition at line 1836 of file RuntimeFunctions.cpp.
RUNTIME_EXPORT ALWAYS_INLINE int64_t encode_date | ( | int64_t | decoded_val, |
int64_t | null_val, | ||
int64_t | multiplier | ||
) |
Definition at line 756 of file RuntimeFunctions.cpp.
T fill_missing_value | ( | int64_t const | cur_idx, |
T const | null_val, | ||
T *const | col_buf, | ||
int64_t const | num_elems_in_partition, | ||
int32_t *const | partition_rowid_buf, | ||
int64_t *const | ordered_index_buf, | ||
bool const | is_forward_fill | ||
) |
RUNTIME_EXPORT ALWAYS_INLINE int64_t floor_div_lhs | ( | const int64_t | dividend, |
const int64_t | divisor | ||
) |
Definition at line 233 of file RuntimeFunctions.cpp.
Referenced by floor_div_nullable_lhs().
RUNTIME_EXPORT ALWAYS_INLINE int64_t floor_div_nullable_lhs | ( | const int64_t | dividend, |
const int64_t | divisor, | ||
const int64_t | null_val | ||
) |
Definition at line 241 of file RuntimeFunctions.cpp.
References floor_div_lhs().
GPU_RT_STUB void force_sync | ( | ) |
Definition at line 1804 of file RuntimeFunctions.cpp.
GPU_RT_STUB int64_t get_block_index | ( | ) |
Definition at line 1840 of file RuntimeFunctions.cpp.
RUNTIME_EXPORT ALWAYS_INLINE double* get_double_aggregation_tree | ( | int64_t ** | aggregation_trees, |
size_t | partition_idx | ||
) |
Definition at line 802 of file RuntimeFunctions.cpp.
RUNTIME_EXPORT ALWAYS_INLINE SumAndCountPair<double>* get_double_derived_aggregation_tree | ( | int64_t ** | aggregation_trees, |
size_t | partition_idx | ||
) |
Definition at line 817 of file RuntimeFunctions.cpp.
RUNTIME_EXPORT ALWAYS_INLINE int32_t get_error_code | ( | int32_t * | error_codes | ) |
Definition at line 1860 of file RuntimeFunctions.cpp.
References pos_start_impl().
Referenced by multifrag_query(), and multifrag_query_hoisted_literals().
RUNTIME_EXPORT ALWAYS_INLINE int64_t* get_group_value_fast_keyless | ( | int64_t * | groups_buffer, |
const int64_t | key, | ||
const int64_t | min_key, | ||
const int64_t | , | ||
const uint32_t | row_size_quad | ||
) |
Definition at line 2102 of file RuntimeFunctions.cpp.
RUNTIME_EXPORT ALWAYS_INLINE int64_t* get_group_value_fast_keyless_semiprivate | ( | int64_t * | groups_buffer, |
const int64_t | key, | ||
const int64_t | min_key, | ||
const int64_t | , | ||
const uint32_t | row_size_quad, | ||
const uint8_t | thread_warp_idx, | ||
const uint8_t | warp_size | ||
) |
Definition at line 2111 of file RuntimeFunctions.cpp.
RUNTIME_EXPORT ALWAYS_INLINE int64_t* get_integer_aggregation_tree | ( | int64_t ** | aggregation_trees, |
size_t | partition_idx | ||
) |
Definition at line 796 of file RuntimeFunctions.cpp.
RUNTIME_EXPORT ALWAYS_INLINE SumAndCountPair<int64_t>* get_integer_derived_aggregation_tree | ( | int64_t ** | aggregation_trees, |
size_t | partition_idx | ||
) |
Definition at line 810 of file RuntimeFunctions.cpp.
ALWAYS_INLINE int64_t* get_matching_group_value | ( | int64_t * | groups_buffer, |
const uint32_t | h, | ||
const T * | key, | ||
const uint32_t | key_count, | ||
const uint32_t | row_size_quad | ||
) |
Definition at line 1930 of file RuntimeFunctions.cpp.
References align_to_int64(), and heavydb.dtypes::T.
RUNTIME_EXPORT ALWAYS_INLINE int64_t* get_matching_group_value | ( | int64_t * | groups_buffer, |
const uint32_t | h, | ||
const int64_t * | key, | ||
const uint32_t | key_count, | ||
const uint32_t | key_width, | ||
const uint32_t | row_size_quad | ||
) |
Definition at line 1949 of file RuntimeFunctions.cpp.
References get_matching_group_value().
RUNTIME_EXPORT ALWAYS_INLINE int64_t* get_matching_group_value_columnar | ( | int64_t * | groups_buffer, |
const uint32_t | h, | ||
const int64_t * | key, | ||
const uint32_t | key_qw_count, | ||
const size_t | entry_count | ||
) |
ALWAYS_INLINE int32_t get_matching_group_value_columnar_slot | ( | int64_t * | groups_buffer, |
const uint32_t | entry_count, | ||
const uint32_t | h, | ||
const T * | key, | ||
const uint32_t | key_count | ||
) |
RUNTIME_EXPORT ALWAYS_INLINE int32_t get_matching_group_value_columnar_slot | ( | int64_t * | groups_buffer, |
const uint32_t | entry_count, | ||
const uint32_t | h, | ||
const int64_t * | key, | ||
const uint32_t | key_count, | ||
const uint32_t | key_width | ||
) |
Definition at line 1996 of file RuntimeFunctions.cpp.
References get_matching_group_value_columnar_slot().
RUNTIME_EXPORT ALWAYS_INLINE int64_t* get_matching_group_value_perfect_hash | ( | int64_t * | groups_buffer, |
const uint32_t | hashed_index, | ||
const int64_t * | key, | ||
const uint32_t | key_count, | ||
const uint32_t | row_size_quad | ||
) |
RUNTIME_EXPORT ALWAYS_INLINE int64_t* get_matching_group_value_perfect_hash_keyless | ( | int64_t * | groups_buffer, |
const uint32_t | hashed_index, | ||
const uint32_t | row_size_quad | ||
) |
For a particular hashed index (only used with multi-column perfect hash group by) it returns the row-wise offset of the group in the output buffer. Since it is intended for keyless hash use, it assumes there is no group columns prepending the output buffer.
Definition at line 2075 of file RuntimeFunctions.cpp.
GPU_RT_STUB int64_t get_thread_index | ( | ) |
Definition at line 1832 of file RuntimeFunctions.cpp.
RUNTIME_EXPORT ALWAYS_INLINE int64_t get_valid_buf_end_pos | ( | const int64_t | num_elems, |
const int64_t | null_start_pos, | ||
const int64_t | null_end_pos | ||
) |
Definition at line 450 of file RuntimeFunctions.cpp.
Referenced by compute_current_row_idx_in_frame(), compute_lower_bound_from_ordered_partition_index(), and compute_upper_bound_from_ordered_partition_index().
RUNTIME_EXPORT ALWAYS_INLINE int64_t get_valid_buf_start_pos | ( | const int64_t | null_start_pos, |
const int64_t | null_end_pos | ||
) |
Definition at line 445 of file RuntimeFunctions.cpp.
Referenced by compute_current_row_idx_in_frame(), compute_lower_bound_from_ordered_partition_index(), and compute_upper_bound_from_ordered_partition_index().
|
inline |
Definition at line 701 of file RuntimeFunctions.cpp.
RUNTIME_EXPORT ALWAYS_INLINE size_t getStartOffsetForSegmentTreeTraversal | ( | size_t | level, |
size_t | tree_fanout | ||
) |
Definition at line 824 of file RuntimeFunctions.cpp.
Referenced by compute_derived_aggregates(), and compute_window_func_via_aggregation_tree().
RUNTIME_EXPORT NEVER_INLINE int32_t group_buff_idx_impl | ( | ) |
Definition at line 1820 of file RuntimeFunctions.cpp.
References pos_start_impl().
RUNTIME_EXPORT NEVER_INLINE void init_columnar_group_by_buffer_gpu | ( | int64_t * | groups_buffer, |
const int64_t * | init_vals, | ||
const uint32_t | groups_buffer_entry_count, | ||
const uint32_t | key_qw_count, | ||
const uint32_t | agg_col_count, | ||
const bool | keyless, | ||
const bool | blocks_share_memory, | ||
const int32_t | frag_idx | ||
) |
Definition at line 1900 of file RuntimeFunctions.cpp.
RUNTIME_EXPORT NEVER_INLINE void init_group_by_buffer_gpu | ( | int64_t * | groups_buffer, |
const int64_t * | init_vals, | ||
const uint32_t | groups_buffer_entry_count, | ||
const uint32_t | key_qw_count, | ||
const uint32_t | agg_col_count, | ||
const bool | keyless, | ||
const int8_t | warp_size | ||
) |
Definition at line 1886 of file RuntimeFunctions.cpp.
RUNTIME_EXPORT NEVER_INLINE void init_group_by_buffer_impl | ( | int64_t * | groups_buffer, |
const int64_t * | init_vals, | ||
const uint32_t | groups_buffer_entry_count, | ||
const uint32_t | key_qw_count, | ||
const uint32_t | agg_col_count, | ||
const bool | keyless, | ||
const int8_t | warp_size | ||
) |
Definition at line 1915 of file RuntimeFunctions.cpp.
RUNTIME_EXPORT int64_t* init_shared_mem | ( | const int64_t * | global_groups_buffer, |
const int32_t | groups_buffer_size | ||
) |
Definition at line 1881 of file RuntimeFunctions.cpp.
RUNTIME_EXPORT NEVER_INLINE const int64_t* init_shared_mem_nop | ( | const int64_t * | groups_buffer, |
const int32_t | groups_buffer_size | ||
) |
Definition at line 1866 of file RuntimeFunctions.cpp.
RUNTIME_EXPORT ALWAYS_INLINE DEVICE int32_t key_for_string_encoded | ( | const int32_t | str_id | ) |
Definition at line 2149 of file RuntimeFunctions.cpp.
RUNTIME_EXPORT NEVER_INLINE void linear_probabilistic_count | ( | uint8_t * | bitmap, |
const uint32_t | bitmap_bytes, | ||
const uint8_t * | key_bytes, | ||
const uint32_t | key_len | ||
) |
Definition at line 2373 of file RuntimeFunctions.cpp.
References MurmurHash3().
RUNTIME_EXPORT ALWAYS_INLINE double load_avg_decimal | ( | const int64_t * | sum, |
const int64_t * | count, | ||
const double | null_val, | ||
const uint32_t | scale | ||
) |
Definition at line 2352 of file RuntimeFunctions.cpp.
RUNTIME_EXPORT ALWAYS_INLINE double load_avg_double | ( | const int64_t * | agg, |
const int64_t * | count, | ||
const double | null_val | ||
) |
Definition at line 2359 of file RuntimeFunctions.cpp.
RUNTIME_EXPORT ALWAYS_INLINE double load_avg_float | ( | const int32_t * | agg, |
const int32_t * | count, | ||
const double | null_val | ||
) |
Definition at line 2366 of file RuntimeFunctions.cpp.
RUNTIME_EXPORT ALWAYS_INLINE double load_avg_int | ( | const int64_t * | sum, |
const int64_t * | count, | ||
const double | null_val | ||
) |
Definition at line 2346 of file RuntimeFunctions.cpp.
RUNTIME_EXPORT ALWAYS_INLINE double load_double | ( | const int64_t * | agg | ) |
Definition at line 2338 of file RuntimeFunctions.cpp.
RUNTIME_EXPORT ALWAYS_INLINE float load_float | ( | const int32_t * | agg | ) |
Definition at line 2342 of file RuntimeFunctions.cpp.
RUNTIME_EXPORT ALWAYS_INLINE int8_t logical_and | ( | const int8_t | lhs, |
const int8_t | rhs, | ||
const int8_t | null_val | ||
) |
Definition at line 336 of file RuntimeFunctions.cpp.
Referenced by process_detections().
RUNTIME_EXPORT ALWAYS_INLINE int8_t logical_not | ( | const int8_t | operand, |
const int8_t | null_val | ||
) |
Definition at line 331 of file RuntimeFunctions.cpp.
RUNTIME_EXPORT ALWAYS_INLINE int8_t logical_or | ( | const int8_t | lhs, |
const int8_t | rhs, | ||
const int8_t | null_val | ||
) |
Definition at line 348 of file RuntimeFunctions.cpp.
ALWAYS_INLINE DEVICE int32_t map_string_dict_id | ( | const int32_t | string_id, |
const int64_t | translation_map_handle, | ||
const int32_t | min_source_id | ||
) |
Definition at line 2154 of file RuntimeFunctions.cpp.
RUNTIME_EXPORT void multifrag_query | ( | int32_t * | error_codes, |
int32_t * | total_matched, | ||
int64_t ** | out, | ||
const uint32_t * | num_fragments_ptr, | ||
const uint32_t * | num_tables_ptr, | ||
const uint32_t * | row_index_resume, | ||
const int8_t *** | col_buffers, | ||
const int64_t * | num_rows, | ||
const uint64_t * | frag_row_offsets, | ||
const int32_t * | max_matched, | ||
const int64_t * | init_agg_value, | ||
const int64_t * | join_hash_tables, | ||
const int8_t * | row_func_mgr | ||
) |
Definition at line 2465 of file RuntimeFunctions.cpp.
References get_error_code(), and query_stub().
RUNTIME_EXPORT void multifrag_query_hoisted_literals | ( | int32_t * | error_codes, |
int32_t * | total_matched, | ||
int64_t ** | out, | ||
const uint32_t * | num_fragments_ptr, | ||
const uint32_t * | num_tables_ptr, | ||
const uint32_t * | row_index_resume, | ||
const int8_t *** | col_buffers, | ||
const int8_t * | literals, | ||
const int64_t * | num_rows, | ||
const uint64_t * | frag_row_offsets, | ||
const int32_t * | max_matched, | ||
const int64_t * | init_agg_value, | ||
const int64_t * | join_hash_tables, | ||
const int8_t * | row_func_mgr | ||
) |
Definition at line 2407 of file RuntimeFunctions.cpp.
References get_error_code(), and query_stub_hoisted_literals().
RUNTIME_EXPORT ALWAYS_INLINE double percent_window_func | ( | const int64_t | output_buff, |
const int64_t | pos | ||
) |
Definition at line 2332 of file RuntimeFunctions.cpp.
RUNTIME_EXPORT ALWAYS_INLINE DEVICE bool point_double_is_null | ( | double * | point | ) |
Definition at line 2511 of file RuntimeFunctions.cpp.
RUNTIME_EXPORT ALWAYS_INLINE DEVICE bool point_int32_is_null | ( | int32_t * | point | ) |
Definition at line 2506 of file RuntimeFunctions.cpp.
RUNTIME_EXPORT NEVER_INLINE int32_t pos_start_impl | ( | int32_t const * | row_index_resume | ) |
Definition at line 1816 of file RuntimeFunctions.cpp.
RUNTIME_EXPORT NEVER_INLINE int32_t pos_step_impl | ( | ) |
Definition at line 1824 of file RuntimeFunctions.cpp.
RUNTIME_EXPORT NEVER_INLINE void query_stub | ( | int32_t * | error_codes, |
int32_t * | total_matched, | ||
int64_t ** | out, | ||
const uint32_t | frag_idx, | ||
const uint32_t * | row_index_resume, | ||
const int8_t ** | col_buffers, | ||
const int64_t * | num_rows, | ||
const uint64_t * | frag_row_offsets, | ||
const int32_t * | max_matched, | ||
const int64_t * | init_agg_value, | ||
const int64_t * | join_hash_tables, | ||
const int8_t * | row_func_mgr | ||
) |
Definition at line 2445 of file RuntimeFunctions.cpp.
Referenced by multifrag_query().
RUNTIME_EXPORT NEVER_INLINE void query_stub_hoisted_literals | ( | int32_t * | error_codes, |
int32_t * | total_matched, | ||
int64_t ** | out, | ||
const uint32_t | frag_idx, | ||
const uint32_t * | row_index_resume, | ||
const int8_t ** | col_buffers, | ||
const int8_t * | literals, | ||
const int64_t * | num_rows, | ||
const uint64_t * | frag_row_offsets, | ||
const int32_t * | max_matched, | ||
const int64_t * | init_agg_value, | ||
const int64_t * | join_hash_tables, | ||
const int8_t * | row_func_mgr | ||
) |
Definition at line 2385 of file RuntimeFunctions.cpp.
Referenced by multifrag_query_hoisted_literals().
RUNTIME_EXPORT ALWAYS_INLINE void record_error_code | ( | const int32_t | err_code, |
int32_t * | error_codes | ||
) |
Definition at line 1846 of file RuntimeFunctions.cpp.
References pos_start_impl().
RUNTIME_EXPORT ALWAYS_INLINE int64_t row_number_window_func | ( | const int64_t | output_buff, |
const int64_t | pos | ||
) |
Definition at line 2328 of file RuntimeFunctions.cpp.
RUNTIME_EXPORT ALWAYS_INLINE DEVICE bool sample_ratio | ( | const double | proportion, |
const int64_t | row_offset | ||
) |
Definition at line 2197 of file RuntimeFunctions.cpp.
Referenced by ScalarExprVisitor< std::set< shared::TableKey > >::visit().
RUNTIME_EXPORT ALWAYS_INLINE int64_t scale_decimal_down_not_nullable | ( | const int64_t | operand, |
const int64_t | scale, | ||
const int64_t | null_val | ||
) |
Definition at line 223 of file RuntimeFunctions.cpp.
RUNTIME_EXPORT ALWAYS_INLINE int64_t scale_decimal_down_nullable | ( | const int64_t | operand, |
const int64_t | scale, | ||
const int64_t | null_val | ||
) |
Definition at line 209 of file RuntimeFunctions.cpp.
RUNTIME_EXPORT ALWAYS_INLINE int64_t scale_decimal_up | ( | const int64_t | operand, |
const uint64_t | scale, | ||
const int64_t | operand_null_val, | ||
const int64_t | result_null_val | ||
) |
Definition at line 201 of file RuntimeFunctions.cpp.
RUNTIME_EXPORT ALWAYS_INLINE void set_matching_group_value_perfect_hash_columnar | ( | int64_t * | groups_buffer, |
const uint32_t | hashed_index, | ||
const int64_t * | key, | ||
const uint32_t | key_count, | ||
const uint32_t | entry_count | ||
) |
RUNTIME_EXPORT ALWAYS_INLINE StringView string_pack | ( | const int8_t * | ptr, |
const int32_t | len | ||
) |
Definition at line 2122 of file RuntimeFunctions.cpp.
GPU_RT_STUB void sync_threadblock | ( | ) |
Definition at line 1808 of file RuntimeFunctions.cpp.
GPU_RT_STUB void sync_warp | ( | ) |
Definition at line 1806 of file RuntimeFunctions.cpp.
GPU_RT_STUB void sync_warp_protected | ( | int64_t | thread_pos, |
int64_t | row_count | ||
) |
Definition at line 1807 of file RuntimeFunctions.cpp.
GPU_RT_STUB int8_t thread_warp_idx | ( | const int8_t | warp_sz | ) |
Definition at line 1828 of file RuntimeFunctions.cpp.
ALWAYS_INLINE DEVICE double tree_model_reg_predict | ( | const double * | regressor_inputs, |
const int64_t | decision_tree_table_handle, | ||
const int64_t | decision_tree_offsets_handle, | ||
const int32_t | num_regressors, | ||
const int32_t | num_trees, | ||
const bool | compute_avg, | ||
const double | null_value | ||
) |
Definition at line 2162 of file RuntimeFunctions.cpp.
References DecisionTreeEntry::feature_index, DecisionTreeEntry::isSplitNode(), DecisionTreeEntry::left_child_row_idx, DecisionTreeEntry::right_child_row_idx, and DecisionTreeEntry::value.
RUNTIME_EXPORT ALWAYS_INLINE DEVICE int32_t width_bucket | ( | const double | target_value, |
const double | lower_bound, | ||
const double | upper_bound, | ||
const double | scale_factor, | ||
const int32_t | partition_count | ||
) |
Definition at line 2205 of file RuntimeFunctions.cpp.
Referenced by ScalarExprVisitor< std::set< shared::TableKey > >::visit(), width_bucket_expr(), and width_bucket_nullable().
RUNTIME_EXPORT ALWAYS_INLINE DEVICE int32_t width_bucket_expr | ( | const double | target_value, |
const bool | reversed, | ||
const double | lower_bound, | ||
const double | upper_bound, | ||
const int32_t | partition_count | ||
) |
Definition at line 2280 of file RuntimeFunctions.cpp.
References width_bucket(), and width_bucket_reversed().
Referenced by CodeGenerator::codegen(), getExpressionRange(), and width_bucket_expr_nullable().
RUNTIME_EXPORT ALWAYS_INLINE DEVICE int32_t width_bucket_expr_no_oob_check | ( | const double | target_value, |
const bool | reversed, | ||
const double | lower_bound, | ||
const double | upper_bound, | ||
const int32_t | partition_count | ||
) |
Definition at line 2314 of file RuntimeFunctions.cpp.
References width_bucket_no_oob_check(), and width_bucket_reversed_no_oob_check().
RUNTIME_EXPORT ALWAYS_INLINE DEVICE int32_t width_bucket_expr_nullable | ( | const double | target_value, |
const bool | reversed, | ||
const double | lower_bound, | ||
const double | upper_bound, | ||
const int32_t | partition_count, | ||
const double | null_val | ||
) |
Definition at line 2300 of file RuntimeFunctions.cpp.
References width_bucket_expr().
RUNTIME_EXPORT ALWAYS_INLINE DEVICE int32_t width_bucket_no_oob_check | ( | const double | target_value, |
const double | lower_bound, | ||
const double | scale_factor | ||
) |
Definition at line 2264 of file RuntimeFunctions.cpp.
References gpu_enabled::lower_bound().
Referenced by width_bucket_expr_no_oob_check().
RUNTIME_EXPORT ALWAYS_INLINE int32_t width_bucket_nullable | ( | const double | target_value, |
const double | lower_bound, | ||
const double | upper_bound, | ||
const double | scale_factor, | ||
const int32_t | partition_count, | ||
const double | null_val | ||
) |
Definition at line 2233 of file RuntimeFunctions.cpp.
References width_bucket().
RUNTIME_EXPORT ALWAYS_INLINE DEVICE int32_t width_bucket_reversed | ( | const double | target_value, |
const double | lower_bound, | ||
const double | upper_bound, | ||
const double | scale_factor, | ||
const int32_t | partition_count | ||
) |
Definition at line 2219 of file RuntimeFunctions.cpp.
Referenced by width_bucket_expr(), and width_bucket_reversed_nullable().
RUNTIME_EXPORT ALWAYS_INLINE DEVICE int32_t width_bucket_reversed_no_oob_check | ( | const double | target_value, |
const double | lower_bound, | ||
const double | scale_factor | ||
) |
Definition at line 2272 of file RuntimeFunctions.cpp.
Referenced by width_bucket_expr_no_oob_check().
RUNTIME_EXPORT ALWAYS_INLINE int32_t width_bucket_reversed_nullable | ( | const double | target_value, |
const double | lower_bound, | ||
const double | upper_bound, | ||
const double | scale_factor, | ||
const int32_t | partition_count, | ||
const double | null_val | ||
) |
Definition at line 2247 of file RuntimeFunctions.cpp.
References width_bucket_reversed().
GPU_RT_STUB void write_back_non_grouped_agg | ( | int64_t * | input_buffer, |
int64_t * | output_buffer, | ||
const int32_t | num_agg_cols | ||
) |
Definition at line 1810 of file RuntimeFunctions.cpp.
RUNTIME_EXPORT NEVER_INLINE void write_back_nop | ( | int64_t * | dest, |
int64_t * | src, | ||
const int32_t | sz | ||
) |
Definition at line 1872 of file RuntimeFunctions.cpp.