OmniSciDB
a5dc49c757
|
Classes | |
struct | FindNullRange |
Functions | |
std::vector< int64_t > | index_to_row_number (const int64_t *index, const size_t index_size) |
bool | advance_current_rank (const std::function< bool(const int64_t lhs, const int64_t rhs)> &comparator, const int64_t *index, const size_t i) |
std::vector< int64_t > | index_to_rank (const int64_t *index, const size_t index_size, const std::function< bool(const int64_t lhs, const int64_t rhs)> &comparator) |
std::vector< int64_t > | index_to_dense_rank (const int64_t *index, const size_t index_size, const std::function< bool(const int64_t lhs, const int64_t rhs)> &comparator) |
std::vector< double > | index_to_percent_rank (const int64_t *index, const size_t index_size, const std::function< bool(const int64_t lhs, const int64_t rhs)> &comparator) |
std::vector< double > | index_to_cume_dist (const int64_t *index, const size_t index_size, const std::function< bool(const int64_t lhs, const int64_t rhs)> &comparator) |
std::vector< int64_t > | index_to_ntile (const int64_t *index, const size_t index_size, const size_t n) |
size_t | window_function_buffer_element_size (const SqlWindowFunctionKind) |
size_t | get_int_constant_from_expr (const Analyzer::Expr *expr) |
int64_t | get_lag_or_lead_argument (const Analyzer::WindowFunction *window_func) |
size_t | get_target_idx_for_first_or_last_value_func (const Analyzer::WindowFunction *window_func, const size_t partition_size) |
void | apply_permutation_to_partition (int64_t *output_for_partition_buff, const int32_t *original_indices, const size_t partition_size) |
void | apply_lag_to_partition (const int64_t lag, const int32_t *original_indices, int64_t *sorted_indices, const size_t partition_size) |
void | apply_nth_value_to_partition (const int32_t *original_indices, int64_t *output_for_partition_buff, const size_t partition_size, const size_t target_pos) |
void | apply_original_index_to_partition (const int32_t *original_indices, int64_t *output_for_partition_buff, const size_t partition_size) |
void | index_to_partition_end (const int8_t *partition_end, const size_t off, const int64_t *index, const size_t index_size, const std::function< bool(const int64_t lhs, const int64_t rhs)> &comparator) |
bool | pos_is_set (const int64_t bitset, const int64_t pos) |
template<class T > | |
void | apply_window_pending_outputs_int (const int64_t handle, const int64_t value, const int64_t bitset, const int64_t pos) |
template<class T > | |
WindowFunctionContext::WindowComparatorResult | integer_comparator_asc (const int8_t *order_column_buffer, const SQLTypeInfo &ti, const int32_t *partition_indices, const int64_t lhs, const int64_t rhs, const bool asc_ordering, const bool nulls_first) |
template<class T > | |
WindowFunctionContext::WindowComparatorResult | integer_comparator_desc (const int8_t *order_column_buffer, const SQLTypeInfo &ti, const int32_t *partition_indices, const int64_t lhs, const int64_t rhs, const bool asc_ordering, const bool nulls_first) |
template<class T , class NullPatternType > | |
WindowFunctionContext::WindowComparatorResult | fp_comparator_asc (const int8_t *order_column_buffer, const SQLTypeInfo &ti, const int32_t *partition_indices, const int64_t lhs, const int64_t rhs, const bool asc_ordering, const bool nulls_first) |
template<class T , class NullPatternType > | |
WindowFunctionContext::WindowComparatorResult | fp_comparator_desc (const int8_t *order_column_buffer, const SQLTypeInfo &ti, const int32_t *partition_indices, const int64_t lhs, const int64_t rhs, const bool asc_ordering, const bool nulls_first) |
bool | allow_framing_on_time_or_date (SqlWindowFunctionKind kind) |
bool anonymous_namespace{WindowContext.cpp}::advance_current_rank | ( | const std::function< bool(const int64_t lhs, const int64_t rhs)> & | comparator, |
const int64_t * | index, | ||
const size_t | i | ||
) |
Definition at line 205 of file WindowContext.cpp.
Referenced by index_to_cume_dist(), index_to_dense_rank(), index_to_partition_end(), index_to_percent_rank(), and index_to_rank().
bool anonymous_namespace{WindowContext.cpp}::allow_framing_on_time_or_date | ( | SqlWindowFunctionKind | kind | ) |
Definition at line 1463 of file WindowContext.cpp.
References CONDITIONAL_CHANGE_EVENT.
Referenced by WindowFunctionContext::buildAggregationTreeForPartition().
void anonymous_namespace{WindowContext.cpp}::apply_lag_to_partition | ( | const int64_t | lag, |
const int32_t * | original_indices, | ||
int64_t * | sorted_indices, | ||
const size_t | partition_size | ||
) |
Definition at line 373 of file WindowContext.cpp.
References gpu_enabled::copy().
Referenced by WindowFunctionContext::computePartitionBuffer().
void anonymous_namespace{WindowContext.cpp}::apply_nth_value_to_partition | ( | const int32_t * | original_indices, |
int64_t * | output_for_partition_buff, | ||
const size_t | partition_size, | ||
const size_t | target_pos | ||
) |
Definition at line 394 of file WindowContext.cpp.
References CHECK_LT, and gpu_enabled::fill().
Referenced by WindowFunctionContext::computePartitionBuffer().
void anonymous_namespace{WindowContext.cpp}::apply_original_index_to_partition | ( | const int32_t * | original_indices, |
int64_t * | output_for_partition_buff, | ||
const size_t | partition_size | ||
) |
Definition at line 404 of file WindowContext.cpp.
Referenced by WindowFunctionContext::computePartitionBuffer().
void anonymous_namespace{WindowContext.cpp}::apply_permutation_to_partition | ( | int64_t * | output_for_partition_buff, |
const int32_t * | original_indices, | ||
const size_t | partition_size | ||
) |
Definition at line 360 of file WindowContext.cpp.
References gpu_enabled::copy().
Referenced by WindowFunctionContext::computePartitionBuffer().
void anonymous_namespace{WindowContext.cpp}::apply_window_pending_outputs_int | ( | const int64_t | handle, |
const int64_t | value, | ||
const int64_t | bitset, | ||
const int64_t | pos | ||
) |
Definition at line 436 of file WindowContext.cpp.
References pos_is_set(), and heavydb.dtypes::T.
WindowFunctionContext::WindowComparatorResult anonymous_namespace{WindowContext.cpp}::fp_comparator_asc | ( | const int8_t * | order_column_buffer, |
const SQLTypeInfo & | ti, | ||
const int32_t * | partition_indices, | ||
const int64_t | lhs, | ||
const int64_t | rhs, | ||
const bool | asc_ordering, | ||
const bool | nulls_first | ||
) |
Definition at line 1099 of file WindowContext.cpp.
References WindowFunctionContext::EQ, SQLTypeInfo::get_type(), WindowFunctionContext::GT, kFLOAT, WindowFunctionContext::LT, null_val_bit_pattern(), and heavydb.dtypes::T.
WindowFunctionContext::WindowComparatorResult anonymous_namespace{WindowContext.cpp}::fp_comparator_desc | ( | const int8_t * | order_column_buffer, |
const SQLTypeInfo & | ti, | ||
const int32_t * | partition_indices, | ||
const int64_t | lhs, | ||
const int64_t | rhs, | ||
const bool | asc_ordering, | ||
const bool | nulls_first | ||
) |
Definition at line 1136 of file WindowContext.cpp.
References WindowFunctionContext::EQ, SQLTypeInfo::get_type(), WindowFunctionContext::GT, kFLOAT, WindowFunctionContext::LT, null_val_bit_pattern(), and heavydb.dtypes::T.
size_t anonymous_namespace{WindowContext.cpp}::get_int_constant_from_expr | ( | const Analyzer::Expr * | expr | ) |
Definition at line 307 of file WindowContext.cpp.
References logger::FATAL, kBIGINT, kINT, kSMALLINT, and LOG.
Referenced by WindowFunctionContext::computePartitionBuffer(), and get_lag_or_lead_argument().
int64_t anonymous_namespace{WindowContext.cpp}::get_lag_or_lead_argument | ( | const Analyzer::WindowFunction * | window_func | ) |
Definition at line 331 of file WindowContext.cpp.
References run_benchmark_import::args, CHECK, CHECK_EQ, get_int_constant_from_expr(), Analyzer::WindowFunction::getArgs(), Analyzer::WindowFunction::getKind(), LAG, and LEAD.
Referenced by WindowFunctionContext::computePartitionBuffer().
size_t anonymous_namespace{WindowContext.cpp}::get_target_idx_for_first_or_last_value_func | ( | const Analyzer::WindowFunction * | window_func, |
const size_t | partition_size | ||
) |
Definition at line 348 of file WindowContext.cpp.
References CHECK, FIRST_VALUE, Analyzer::WindowFunction::getKind(), and LAST_VALUE.
Referenced by WindowFunctionContext::computePartitionBuffer().
std::vector<double> anonymous_namespace{WindowContext.cpp}::index_to_cume_dist | ( | const int64_t * | index, |
const size_t | index_size, | ||
const std::function< bool(const int64_t lhs, const int64_t rhs)> & | comparator | ||
) |
Definition at line 265 of file WindowContext.cpp.
References advance_current_rank().
Referenced by WindowFunctionContext::computePartitionBuffer().
std::vector<int64_t> anonymous_namespace{WindowContext.cpp}::index_to_dense_rank | ( | const int64_t * | index, |
const size_t | index_size, | ||
const std::function< bool(const int64_t lhs, const int64_t rhs)> & | comparator | ||
) |
Definition at line 232 of file WindowContext.cpp.
References advance_current_rank().
Referenced by WindowFunctionContext::computePartitionBuffer().
std::vector<int64_t> anonymous_namespace{WindowContext.cpp}::index_to_ntile | ( | const int64_t * | index, |
const size_t | index_size, | ||
const size_t | n | ||
) |
Definition at line 286 of file WindowContext.cpp.
Referenced by WindowFunctionContext::computePartitionBuffer().
void anonymous_namespace{WindowContext.cpp}::index_to_partition_end | ( | const int8_t * | partition_end, |
const size_t | off, | ||
const int64_t * | index, | ||
const size_t | index_size, | ||
const std::function< bool(const int64_t lhs, const int64_t rhs)> & | comparator | ||
) |
Definition at line 413 of file WindowContext.cpp.
References advance_current_rank(), agg_count_distinct_bitmap(), and CHECK.
Referenced by WindowFunctionContext::computePartitionBuffer().
std::vector<double> anonymous_namespace{WindowContext.cpp}::index_to_percent_rank | ( | const int64_t * | index, |
const size_t | index_size, | ||
const std::function< bool(const int64_t lhs, const int64_t rhs)> & | comparator | ||
) |
Definition at line 248 of file WindowContext.cpp.
References advance_current_rank().
Referenced by WindowFunctionContext::computePartitionBuffer().
std::vector<int64_t> anonymous_namespace{WindowContext.cpp}::index_to_rank | ( | const int64_t * | index, |
const size_t | index_size, | ||
const std::function< bool(const int64_t lhs, const int64_t rhs)> & | comparator | ||
) |
Definition at line 216 of file WindowContext.cpp.
References advance_current_rank().
Referenced by WindowFunctionContext::computePartitionBuffer().
std::vector<int64_t> anonymous_namespace{WindowContext.cpp}::index_to_row_number | ( | const int64_t * | index, |
const size_t | index_size | ||
) |
Definition at line 195 of file WindowContext.cpp.
Referenced by WindowFunctionContext::computePartitionBuffer().
WindowFunctionContext::WindowComparatorResult anonymous_namespace{WindowContext.cpp}::integer_comparator_asc | ( | const int8_t * | order_column_buffer, |
const SQLTypeInfo & | ti, | ||
const int32_t * | partition_indices, | ||
const int64_t | lhs, | ||
const int64_t | rhs, | ||
const bool | asc_ordering, | ||
const bool | nulls_first | ||
) |
Definition at line 1033 of file WindowContext.cpp.
References WindowFunctionContext::EQ, WindowFunctionContext::GT, inline_fixed_encoding_null_val(), WindowFunctionContext::LT, and heavydb.dtypes::T.
WindowFunctionContext::WindowComparatorResult anonymous_namespace{WindowContext.cpp}::integer_comparator_desc | ( | const int8_t * | order_column_buffer, |
const SQLTypeInfo & | ti, | ||
const int32_t * | partition_indices, | ||
const int64_t | lhs, | ||
const int64_t | rhs, | ||
const bool | asc_ordering, | ||
const bool | nulls_first | ||
) |
Definition at line 1066 of file WindowContext.cpp.
References WindowFunctionContext::EQ, WindowFunctionContext::GT, inline_fixed_encoding_null_val(), WindowFunctionContext::LT, and heavydb.dtypes::T.
bool anonymous_namespace{WindowContext.cpp}::pos_is_set | ( | const int64_t | bitset, |
const int64_t | pos | ||
) |
Definition at line 429 of file WindowContext.cpp.
Referenced by apply_window_pending_outputs_double(), apply_window_pending_outputs_float(), apply_window_pending_outputs_float_columnar(), and apply_window_pending_outputs_int().
size_t anonymous_namespace{WindowContext.cpp}::window_function_buffer_element_size | ( | const SqlWindowFunctionKind | ) |
Definition at line 302 of file WindowContext.cpp.
Referenced by WindowFunctionContext::compute().