OmniSciDB
c1a53651b2
|
#include "RuntimeFunctions.h"
#include "BufferCompaction.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 <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_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) |
GPU_RT_STUB void | agg_count_distinct_bitmap_gpu (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 int64_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) |
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 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 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 *error_code) |
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) |
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 (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, int64_t **out, uint32_t frag_idx, const int64_t *join_hash_tables, int32_t *error_code, int32_t *total_matched, const int8_t *row_func_mgr) |
RUNTIME_EXPORT void | multifrag_query_hoisted_literals (const int8_t ***col_buffers, const uint64_t *num_fragments, const int8_t *literals, const int64_t *num_rows, const uint64_t *frag_row_offsets, const int32_t *max_matched, int32_t *total_matched, const int64_t *init_agg_value, int64_t **out, int32_t *error_code, const uint32_t *num_tables_ptr, const int64_t *join_hash_tables, const int8_t *row_func_mgr) |
RUNTIME_EXPORT NEVER_INLINE void | query_stub (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, int64_t **out, uint32_t frag_idx, const int64_t *join_hash_tables, int32_t *error_code, int32_t *total_matched, const int8_t *row_func_mgr) |
RUNTIME_EXPORT void | multifrag_query (const int8_t ***col_buffers, const uint64_t *num_fragments, const int64_t *num_rows, const uint64_t *frag_row_offsets, const int32_t *max_matched, int32_t *total_matched, const int64_t *init_agg_value, int64_t **out, int32_t *error_code, const uint32_t *num_tables_ptr, const int64_t *join_hash_tables, const int8_t *row_func_mgr) |
RUNTIME_EXPORT ALWAYS_INLINE DEVICE bool | check_interrupt () |
RUNTIME_EXPORT bool | check_interrupt_init (unsigned command) |
#define ADDR_T int64_t |
Definition at line 1510 of file RuntimeFunctions.cpp.
#define ADDR_T int32_t |
Definition at line 1510 of file RuntimeFunctions.cpp.
#define DATA_T int64_t |
Definition at line 1509 of file RuntimeFunctions.cpp.
#define DATA_T int32_t |
Definition at line 1509 of file RuntimeFunctions.cpp.
#define DATA_T int16_t |
Definition at line 1509 of file RuntimeFunctions.cpp.
#define DATA_T int8_t |
Definition at line 1509 of file RuntimeFunctions.cpp.
#define DATA_T double |
Definition at line 1509 of file RuntimeFunctions.cpp.
#define DATA_T float |
Definition at line 1509 of file RuntimeFunctions.cpp.
#define DEF_AGG_ID_INT | ( | n | ) |
Definition at line 1186 of file RuntimeFunctions.cpp.
#define DEF_AGG_MAX_INT | ( | n | ) |
Definition at line 1164 of file RuntimeFunctions.cpp.
#define DEF_AGG_MIN_INT | ( | n | ) |
Definition at line 1175 of file RuntimeFunctions.cpp.
#define DEF_ARITH_NULLABLE | ( | type, | |
null_type, | |||
opname, | |||
opsym | |||
) |
Definition at line 44 of file RuntimeFunctions.cpp.
#define DEF_ARITH_NULLABLE_LHS | ( | type, | |
null_type, | |||
opname, | |||
opsym | |||
) |
Definition at line 53 of file RuntimeFunctions.cpp.
#define DEF_ARITH_NULLABLE_RHS | ( | type, | |
null_type, | |||
opname, | |||
opsym | |||
) |
Definition at line 62 of file RuntimeFunctions.cpp.
#define DEF_BINARY_NULLABLE_ALL_OPS | ( | type, | |
null_type | |||
) |
Definition at line 116 of file RuntimeFunctions.cpp.
#define DEF_CAST_NULLABLE | ( | from_type, | |
to_type | |||
) |
Definition at line 260 of file RuntimeFunctions.cpp.
#define DEF_CAST_NULLABLE_BIDIR | ( | type1, | |
type2 | |||
) |
Definition at line 277 of file RuntimeFunctions.cpp.
#define DEF_CAST_SCALED_NULLABLE | ( | from_type, | |
to_type | |||
) |
Definition at line 268 of file RuntimeFunctions.cpp.
#define DEF_CHECKED_SINGLE_AGG_ID_INT | ( | n | ) |
Definition at line 1192 of file RuntimeFunctions.cpp.
#define DEF_CMP_NULLABLE | ( | type, | |
null_type, | |||
opname, | |||
opsym | |||
) |
Definition at line 71 of file RuntimeFunctions.cpp.
#define DEF_CMP_NULLABLE_LHS | ( | type, | |
null_type, | |||
opname, | |||
opsym | |||
) |
Definition at line 83 of file RuntimeFunctions.cpp.
#define DEF_CMP_NULLABLE_RHS | ( | type, | |
null_type, | |||
opname, | |||
opsym | |||
) |
Definition at line 95 of file RuntimeFunctions.cpp.
#define DEF_COMPUTE_CURRENT_ROW_IDX_IN_FRAME | ( | value_type, | |
oper_name | |||
) |
Definition at line 495 of file RuntimeFunctions.cpp.
#define DEF_COMPUTE_CURRENT_ROW_IDX_IN_FRAME_ALL_TYPES | ( | oper_name | ) |
Definition at line 518 of file RuntimeFunctions.cpp.
#define DEF_GET_VALUE_IN_FRAME | ( | col_type, | |
logical_type | |||
) |
Definition at line 716 of file RuntimeFunctions.cpp.
#define DEF_HANDLE_NULL_FOR_WINDOW_FRAMING_AGG | ( | agg_type, | |
null_type | |||
) |
Definition at line 1057 of file RuntimeFunctions.cpp.
#define DEF_MAP_STRING_TO_DATUM | ( | value_type, | |
value_name | |||
) |
Definition at line 177 of file RuntimeFunctions.cpp.
#define DEF_RANGE_MODE_FRAME_LOWER_BOUND | ( | target_val_type, | |
col_type, | |||
null_type, | |||
opname, | |||
opsym | |||
) |
Definition at line 560 of file RuntimeFunctions.cpp.
#define DEF_RANGE_MODE_FRAME_UPPER_BOUND | ( | target_val_type, | |
col_type, | |||
null_type, | |||
opname, | |||
opsym | |||
) |
Definition at line 641 of file RuntimeFunctions.cpp.
#define DEF_ROUND_NULLABLE | ( | from_type, | |
to_type | |||
) |
Definition at line 281 of file RuntimeFunctions.cpp.
#define DEF_SAFE_DIV_NULLABLE | ( | type, | |
null_type, | |||
opname | |||
) |
Definition at line 107 of file RuntimeFunctions.cpp.
#define DEF_SEARCH_AGGREGATION_TREE | ( | agg_value_type | ) |
Definition at line 895 of file RuntimeFunctions.cpp.
#define DEF_SEARCH_DERIVED_AGGREGATION_TREE | ( | agg_value_type | ) |
Definition at line 1016 of file RuntimeFunctions.cpp.
#define DEF_SHARED_AGG_RET_STUBS | ( | base_agg_func | ) |
Definition at line 1539 of file RuntimeFunctions.cpp.
#define DEF_SHARED_AGG_STUBS | ( | base_agg_func | ) |
Definition at line 1578 of file RuntimeFunctions.cpp.
#define DEF_SKIP_AGG | ( | base_agg_func | ) |
Definition at line 1479 of file RuntimeFunctions.cpp.
#define DEF_SKIP_AGG | ( | base_agg_func | ) |
Definition at line 1479 of file RuntimeFunctions.cpp.
#define DEF_SKIP_AGG_ADD | ( | base_agg_func | ) |
Definition at line 1312 of file RuntimeFunctions.cpp.
#define DEF_SKIP_IF_AGG | ( | skip_agg_func, | |
base_agg_func | |||
) |
Definition at line 1492 of file RuntimeFunctions.cpp.
#define DEF_UMINUS_NULLABLE | ( | type, | |
null_type | |||
) |
Definition at line 245 of file RuntimeFunctions.cpp.
#define DEF_WRITE_PROJECTION_INT | ( | n | ) |
Definition at line 1220 of file RuntimeFunctions.cpp.
#define GPU_RT_STUB NEVER_INLINE __attribute__((optnone)) |
Definition at line 373 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 385 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 393 of file RuntimeFunctions.cpp.
RUNTIME_EXPORT ALWAYS_INLINE uint64_t agg_count | ( | uint64_t * | agg, |
const int64_t | |||
) |
Definition at line 360 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 | ||
) |
Definition at line 365 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 uint64_t | , | ||
const uint64_t | |||
) |
Definition at line 376 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 | skip_val | ||
) |
Definition at line 1122 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 uint64_t | , | ||
const uint64_t | |||
) |
Definition at line 1132 of file RuntimeFunctions.cpp.
RUNTIME_EXPORT ALWAYS_INLINE uint64_t agg_count_double | ( | uint64_t * | agg, |
const double | val | ||
) |
Definition at line 1358 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 1464 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 1411 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 1472 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 1275 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 1146 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 1305 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 1289 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 1141 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 1297 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 1281 of file RuntimeFunctions.cpp.
References agg_count().
RUNTIME_EXPORT ALWAYS_INLINE void agg_id | ( | int64_t * | agg, |
const int64_t | val | ||
) |
Definition at line 1091 of file RuntimeFunctions.cpp.
RUNTIME_EXPORT ALWAYS_INLINE void agg_id_double | ( | int64_t * | agg, |
const double | val | ||
) |
Definition at line 1389 of file RuntimeFunctions.cpp.
GPU_RT_STUB void agg_id_double_shared_slow | ( | int64_t * | agg, |
const double * | val | ||
) |
Definition at line 1670 of file RuntimeFunctions.cpp.
RUNTIME_EXPORT ALWAYS_INLINE void agg_id_float | ( | int32_t * | agg, |
const float | val | ||
) |
Definition at line 1442 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 1095 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 1610 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 1422 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 1083 of file RuntimeFunctions.cpp.
RUNTIME_EXPORT ALWAYS_INLINE void agg_max_double | ( | int64_t * | agg, |
const double | val | ||
) |
Definition at line 1377 of file RuntimeFunctions.cpp.
RUNTIME_EXPORT ALWAYS_INLINE void agg_max_float | ( | int32_t * | agg, |
const float | val | ||
) |
Definition at line 1430 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 1654 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 1658 of file RuntimeFunctions.cpp.
RUNTIME_EXPORT ALWAYS_INLINE void agg_min | ( | int64_t * | agg, |
const int64_t | val | ||
) |
Definition at line 1087 of file RuntimeFunctions.cpp.
RUNTIME_EXPORT ALWAYS_INLINE void agg_min_double | ( | int64_t * | agg, |
const double | val | ||
) |
Definition at line 1383 of file RuntimeFunctions.cpp.
RUNTIME_EXPORT ALWAYS_INLINE void agg_min_float | ( | int32_t * | agg, |
const float | val | ||
) |
Definition at line 1436 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 1662 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 1666 of file RuntimeFunctions.cpp.
RUNTIME_EXPORT ALWAYS_INLINE int64_t agg_sum | ( | int64_t * | agg, |
const int64_t | val | ||
) |
Definition at line 1071 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 1363 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 1704 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 1706 of file RuntimeFunctions.cpp.
RUNTIME_EXPORT ALWAYS_INLINE void agg_sum_float | ( | int32_t * | agg, |
const float | val | ||
) |
Definition at line 1416 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 1709 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 1711 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 1077 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 1369 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 1728 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 1732 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 1736 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 1740 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 1158 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 1715 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 1268 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 1721 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 1676 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 1260 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 1688 of file RuntimeFunctions.cpp.
RUNTIME_EXPORT ALWAYS_INLINE int32_t agg_sum_int32 | ( | int32_t * | agg, |
const int32_t | val | ||
) |
Definition at line 1151 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 1694 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 1247 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 1698 of file RuntimeFunctions.cpp.
GPU_RT_STUB int64_t agg_sum_shared | ( | int64_t * | agg, |
const int64_t | val | ||
) |
Definition at line 1672 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 1232 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 1682 of file RuntimeFunctions.cpp.
RUNTIME_EXPORT ALWAYS_INLINE int8_t bit_is_set | ( | const int64_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 399 of file RuntimeFunctions.cpp.
RUNTIME_EXPORT ALWAYS_INLINE DEVICE int32_t char_length | ( | const char * | str, |
const int32_t | str_len | ||
) |
Definition at line 2080 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 2085 of file RuntimeFunctions.cpp.
RUNTIME_EXPORT ALWAYS_INLINE DEVICE bool check_interrupt | ( | ) |
Definition at line 2386 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 2393 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 1106 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 1395 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 1642 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 1447 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 1648 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 1630 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 1624 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 1635 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 1617 of file RuntimeFunctions.cpp.
|
inline |
Definition at line 451 of file RuntimeFunctions.cpp.
References get_valid_buf_end_pos(), and get_valid_buf_start_pos().
|
inline |
Definition at line 953 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 422 of file RuntimeFunctions.cpp.
|
inline |
Definition at line 533 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 782 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 774 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 765 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 757 of file RuntimeFunctions.cpp.
|
inline |
Definition at line 614 of file RuntimeFunctions.cpp.
References get_valid_buf_end_pos(), and get_valid_buf_start_pos().
|
inline |
Definition at line 841 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 1532 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 1521 of file RuntimeFunctions.cpp.
Referenced by decimal_ceil().
GPU_RT_STUB int64_t* declare_dynamic_shared_memory | ( | ) |
Definition at line 1781 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 750 of file RuntimeFunctions.cpp.
RUNTIME_EXPORT ALWAYS_INLINE int64_t floor_div_lhs | ( | const int64_t | dividend, |
const int64_t | divisor | ||
) |
Definition at line 231 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 239 of file RuntimeFunctions.cpp.
References floor_div_lhs().
GPU_RT_STUB void force_sync | ( | ) |
Definition at line 1745 of file RuntimeFunctions.cpp.
GPU_RT_STUB int64_t get_block_index | ( | ) |
Definition at line 1785 of file RuntimeFunctions.cpp.
RUNTIME_EXPORT ALWAYS_INLINE double* get_double_aggregation_tree | ( | int64_t ** | aggregation_trees, |
size_t | partition_idx | ||
) |
Definition at line 796 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 811 of file RuntimeFunctions.cpp.
RUNTIME_EXPORT ALWAYS_INLINE int32_t get_error_code | ( | int32_t * | error_codes | ) |
Definition at line 1804 of file RuntimeFunctions.cpp.
References pos_start_impl().
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 2046 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 2055 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 790 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 804 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 1874 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 1893 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 1940 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 2019 of file RuntimeFunctions.cpp.
GPU_RT_STUB int64_t get_thread_index | ( | ) |
Definition at line 1777 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 444 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 439 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 695 of file RuntimeFunctions.cpp.
RUNTIME_EXPORT ALWAYS_INLINE size_t getStartOffsetForSegmentTreeTraversal | ( | size_t | level, |
size_t | tree_fanout | ||
) |
Definition at line 818 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 1765 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 1844 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 1830 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 1859 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 1825 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 1810 of file RuntimeFunctions.cpp.
RUNTIME_EXPORT ALWAYS_INLINE DEVICE int32_t key_for_string_encoded | ( | const int32_t | str_id | ) |
Definition at line 2093 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 2280 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 2259 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 2266 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 2273 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 2253 of file RuntimeFunctions.cpp.
RUNTIME_EXPORT ALWAYS_INLINE double load_double | ( | const int64_t * | agg | ) |
Definition at line 2245 of file RuntimeFunctions.cpp.
RUNTIME_EXPORT ALWAYS_INLINE float load_float | ( | const int32_t * | agg | ) |
Definition at line 2249 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 334 of file RuntimeFunctions.cpp.
RUNTIME_EXPORT ALWAYS_INLINE int8_t logical_not | ( | const int8_t | operand, |
const int8_t | null_val | ||
) |
Definition at line 329 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 346 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 2098 of file RuntimeFunctions.cpp.
RUNTIME_EXPORT void multifrag_query | ( | const int8_t *** | col_buffers, |
const uint64_t * | num_fragments, | ||
const int64_t * | num_rows, | ||
const uint64_t * | frag_row_offsets, | ||
const int32_t * | max_matched, | ||
int32_t * | total_matched, | ||
const int64_t * | init_agg_value, | ||
int64_t ** | out, | ||
int32_t * | error_code, | ||
const uint32_t * | num_tables_ptr, | ||
const int64_t * | join_hash_tables, | ||
const int8_t * | row_func_mgr | ||
) |
Definition at line 2359 of file RuntimeFunctions.cpp.
References query_stub().
RUNTIME_EXPORT void multifrag_query_hoisted_literals | ( | const int8_t *** | col_buffers, |
const uint64_t * | num_fragments, | ||
const int8_t * | literals, | ||
const int64_t * | num_rows, | ||
const uint64_t * | frag_row_offsets, | ||
const int32_t * | max_matched, | ||
int32_t * | total_matched, | ||
const int64_t * | init_agg_value, | ||
int64_t ** | out, | ||
int32_t * | error_code, | ||
const uint32_t * | num_tables_ptr, | ||
const int64_t * | join_hash_tables, | ||
const int8_t * | row_func_mgr | ||
) |
Definition at line 2311 of file RuntimeFunctions.cpp.
References query_stub_hoisted_literals().
RUNTIME_EXPORT ALWAYS_INLINE double percent_window_func | ( | const int64_t | output_buff, |
const int64_t | pos | ||
) |
Definition at line 2239 of file RuntimeFunctions.cpp.
RUNTIME_EXPORT NEVER_INLINE int32_t pos_start_impl | ( | int32_t * | error_code | ) |
Definition at line 1756 of file RuntimeFunctions.cpp.
RUNTIME_EXPORT NEVER_INLINE int32_t pos_step_impl | ( | ) |
Definition at line 1769 of file RuntimeFunctions.cpp.
RUNTIME_EXPORT NEVER_INLINE void query_stub | ( | 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, | ||
int64_t ** | out, | ||
uint32_t | frag_idx, | ||
const int64_t * | join_hash_tables, | ||
int32_t * | error_code, | ||
int32_t * | total_matched, | ||
const int8_t * | row_func_mgr | ||
) |
Definition at line 2341 of file RuntimeFunctions.cpp.
Referenced by multifrag_query().
RUNTIME_EXPORT NEVER_INLINE void query_stub_hoisted_literals | ( | 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, | ||
int64_t ** | out, | ||
uint32_t | frag_idx, | ||
const int64_t * | join_hash_tables, | ||
int32_t * | error_code, | ||
int32_t * | total_matched, | ||
const int8_t * | row_func_mgr | ||
) |
Definition at line 2291 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 1791 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 2235 of file RuntimeFunctions.cpp.
RUNTIME_EXPORT ALWAYS_INLINE DEVICE bool sample_ratio | ( | const double | proportion, |
const int64_t | row_offset | ||
) |
Definition at line 2106 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 221 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 207 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 199 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 2066 of file RuntimeFunctions.cpp.
GPU_RT_STUB void sync_threadblock | ( | ) |
Definition at line 1749 of file RuntimeFunctions.cpp.
GPU_RT_STUB void sync_warp | ( | ) |
Definition at line 1747 of file RuntimeFunctions.cpp.
GPU_RT_STUB void sync_warp_protected | ( | int64_t | thread_pos, |
int64_t | row_count | ||
) |
Definition at line 1748 of file RuntimeFunctions.cpp.
GPU_RT_STUB int8_t thread_warp_idx | ( | const int8_t | warp_sz | ) |
Definition at line 1773 of file RuntimeFunctions.cpp.
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 2114 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 2187 of file RuntimeFunctions.cpp.
References width_bucket(), and width_bucket_reversed().
Referenced by CodeGenerator::codegen(), getExpressionRange(), ScalarExprVisitor< std::set< shared::TableKey > >::visit(), 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 2221 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 2207 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 2173 of file RuntimeFunctions.cpp.
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 2142 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 2128 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 2180 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 2156 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 1751 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 1816 of file RuntimeFunctions.cpp.