OmniSciDB
a5dc49c757
|
#include "TableFunctionsStats.hpp"
Go to the source code of this file.
Functions | |
template<typename T > | |
NEVER_INLINE HOST ColumnStats< T > | get_column_stats (const T *data, const int64_t num_rows, const StatsRequestPredicate &predicate) |
template NEVER_INLINE HOST ColumnStats< int8_t > | get_column_stats (const int8_t *data, const int64_t num_rows, const StatsRequestPredicate &predicate) |
template NEVER_INLINE HOST ColumnStats< int16_t > | get_column_stats (const int16_t *data, const int64_t num_rows, const StatsRequestPredicate &predicate) |
template NEVER_INLINE HOST ColumnStats< int32_t > | get_column_stats (const int32_t *data, const int64_t num_rows, const StatsRequestPredicate &predicate) |
template NEVER_INLINE HOST ColumnStats< int64_t > | get_column_stats (const int64_t *data, const int64_t num_rows, const StatsRequestPredicate &predicate) |
template NEVER_INLINE HOST ColumnStats< float > | get_column_stats (const float *data, const int64_t num_rows, const StatsRequestPredicate &predicate) |
template NEVER_INLINE HOST ColumnStats< double > | get_column_stats (const double *data, const int64_t num_rows, const StatsRequestPredicate &predicate) |
template<typename T > | |
NEVER_INLINE HOST ColumnStats< T > | get_column_stats (const Column< T > &col, const StatsRequestPredicate &predicate) |
template NEVER_INLINE HOST ColumnStats< int8_t > | get_column_stats (const Column< int8_t > &col, const StatsRequestPredicate &predicate) |
template NEVER_INLINE HOST ColumnStats< int16_t > | get_column_stats (const Column< int16_t > &col, const StatsRequestPredicate &predicate) |
template NEVER_INLINE HOST ColumnStats< int32_t > | get_column_stats (const Column< int32_t > &col, const StatsRequestPredicate &predicate) |
template NEVER_INLINE HOST ColumnStats< int64_t > | get_column_stats (const Column< int64_t > &col, const StatsRequestPredicate &predicate) |
template NEVER_INLINE HOST ColumnStats< float > | get_column_stats (const Column< float > &col, const StatsRequestPredicate &predicate) |
template NEVER_INLINE HOST ColumnStats< double > | get_column_stats (const Column< double > &col, const StatsRequestPredicate &predicate) |
StatsRequestAggType | convert_string_to_stats_request_agg_type (const std::string &str) |
StatsRequestPredicateOp | convert_string_to_stats_request_predicate_op (const std::string &str) |
std::string | replace_substrings (const std::string &str, const std::string &pattern_str, const std::string &replacement_str) |
std::vector< StatsRequest > | parse_stats_requests_json (const std::string &stats_requests_json_str, const int64_t num_attrs) |
std::vector< std::pair< const char *, double > > | get_stats_key_value_pairs (const std::vector< StatsRequest > &stats_requests) |
StatsRequestAggType convert_string_to_stats_request_agg_type | ( | const std::string & | str | ) |
Definition at line 158 of file TableFunctionsStats.cpp.
References AVG, COUNT, MAX, MIN, and SUM.
Referenced by parse_stats_requests_json().
StatsRequestPredicateOp convert_string_to_stats_request_predicate_op | ( | const std::string & | str | ) |
Definition at line 177 of file TableFunctionsStats.cpp.
Referenced by parse_stats_requests_json().
NEVER_INLINE HOST ColumnStats<T> get_column_stats | ( | const T * | data, |
const int64_t | num_rows, | ||
const StatsRequestPredicate & | predicate | ||
) |
Definition at line 22 of file TableFunctionsStats.cpp.
References ColumnStats< T >::max, max_inputs_per_thread, ColumnStats< T >::mean, ColumnStats< T >::min, ColumnStats< T >::non_null_or_filtered_count, threading_serial::parallel_for(), ColumnStats< T >::sum, heavydb.dtypes::T, and ColumnStats< T >::total_count.
Referenced by compute_stats_requests(), and get_column_stats().
template NEVER_INLINE HOST ColumnStats<int8_t> get_column_stats | ( | const int8_t * | data, |
const int64_t | num_rows, | ||
const StatsRequestPredicate & | predicate | ||
) |
template NEVER_INLINE HOST ColumnStats<int16_t> get_column_stats | ( | const int16_t * | data, |
const int64_t | num_rows, | ||
const StatsRequestPredicate & | predicate | ||
) |
template NEVER_INLINE HOST ColumnStats<int32_t> get_column_stats | ( | const int32_t * | data, |
const int64_t | num_rows, | ||
const StatsRequestPredicate & | predicate | ||
) |
template NEVER_INLINE HOST ColumnStats<int64_t> get_column_stats | ( | const int64_t * | data, |
const int64_t | num_rows, | ||
const StatsRequestPredicate & | predicate | ||
) |
template NEVER_INLINE HOST ColumnStats<float> get_column_stats | ( | const float * | data, |
const int64_t | num_rows, | ||
const StatsRequestPredicate & | predicate | ||
) |
template NEVER_INLINE HOST ColumnStats<double> get_column_stats | ( | const double * | data, |
const int64_t | num_rows, | ||
const StatsRequestPredicate & | predicate | ||
) |
NEVER_INLINE HOST ColumnStats<T> get_column_stats | ( | const Column< T > & | col, |
const StatsRequestPredicate & | predicate | ||
) |
Definition at line 133 of file TableFunctionsStats.cpp.
References get_column_stats(), Column< T >::getPtr(), and Column< T >::size().
template NEVER_INLINE HOST ColumnStats<int8_t> get_column_stats | ( | const Column< int8_t > & | col, |
const StatsRequestPredicate & | predicate | ||
) |
template NEVER_INLINE HOST ColumnStats<int16_t> get_column_stats | ( | const Column< int16_t > & | col, |
const StatsRequestPredicate & | predicate | ||
) |
template NEVER_INLINE HOST ColumnStats<int32_t> get_column_stats | ( | const Column< int32_t > & | col, |
const StatsRequestPredicate & | predicate | ||
) |
template NEVER_INLINE HOST ColumnStats<int64_t> get_column_stats | ( | const Column< int64_t > & | col, |
const StatsRequestPredicate & | predicate | ||
) |
template NEVER_INLINE HOST ColumnStats<float> get_column_stats | ( | const Column< float > & | col, |
const StatsRequestPredicate & | predicate | ||
) |
template NEVER_INLINE HOST ColumnStats<double> get_column_stats | ( | const Column< double > & | col, |
const StatsRequestPredicate & | predicate | ||
) |
std::vector<std::pair<const char*, double> > get_stats_key_value_pairs | ( | const std::vector< StatsRequest > & | stats_requests | ) |
Definition at line 282 of file TableFunctionsStats.cpp.
std::vector<StatsRequest> parse_stats_requests_json | ( | const std::string & | stats_requests_json_str, |
const int64_t | num_attrs | ||
) |
Definition at line 211 of file TableFunctionsStats.cpp.
References StatsRequest::agg_type, StatsRequest::attr_id, convert_string_to_stats_request_agg_type(), convert_string_to_stats_request_predicate_op(), StatsRequest::filter_type, StatsRequest::filter_val, StatsRequest::name, NONE, replace_substrings(), to_string(), and shared::transform().
std::string replace_substrings | ( | const std::string & | str, |
const std::string & | pattern_str, | ||
const std::string & | replacement_str | ||
) |
Definition at line 191 of file TableFunctionsStats.cpp.
Referenced by parse_stats_requests_json().