OmniSciDB
a5dc49c757
|
#include "Shared/SqlTypesLayout.h"
#include <list>
#include <memory>
#include <utility>
#include <vector>
Go to the source code of this file.
Namespaces | |
Analyzer | |
Functions | |
std::pair< int64_t, int64_t > | inline_int_max_min (const size_t byte_width) |
std::pair< uint64_t, uint64_t > | inline_uint_max_min (const size_t byte_width) |
int64_t | get_agg_initial_val (const SQLAgg agg, const SQLTypeInfo &ti, const bool enable_compaction, const unsigned min_byte_width_to_compact) |
std::vector< int64_t > | init_agg_val_vec (const std::vector< Analyzer::Expr * > &targets, const std::list< std::shared_ptr< Analyzer::Expr >> &quals, const QueryMemoryDescriptor &query_mem_desc) |
std::vector< int64_t > | init_agg_val_vec (const std::vector< TargetInfo > &targets, const QueryMemoryDescriptor &query_mem_desc) |
const Analyzer::Expr * | agg_arg (const Analyzer::Expr *expr) |
bool | constrained_not_null (const Analyzer::Expr *expr, const std::list< std::shared_ptr< Analyzer::Expr >> &quals) |
void | set_notnull (TargetInfo &target, const bool not_null) |
const Analyzer::Expr* agg_arg | ( | const Analyzer::Expr * | expr | ) |
Definition at line 296 of file OutputBufferInitialization.cpp.
References Analyzer::AggExpr::get_arg().
Referenced by TargetExprCodegen::codegen(), TargetExprCodegen::codegenAggregate(), get_compact_type(), anonymous_namespace{GroupByAndAggregate.cpp}::get_keyless_info(), target_info::get_target_info_impl(), init_agg_val_vec(), TargetExprCodegenBuilder::operator()(), and set_compact_type().
bool constrained_not_null | ( | const Analyzer::Expr * | expr, |
const std::list< std::shared_ptr< Analyzer::Expr >> & | quals | ||
) |
Definition at line 301 of file OutputBufferInitialization.cpp.
References kISNOTNULL, kISNULL, and kNOT.
Referenced by anonymous_namespace{GroupByAndAggregate.cpp}::get_keyless_info(), init_agg_val_vec(), and TargetExprCodegenBuilder::operator()().
int64_t get_agg_initial_val | ( | const SQLAgg | agg, |
const SQLTypeInfo & | ti, | ||
const bool | enable_compaction, | ||
const unsigned | min_byte_width_to_compact | ||
) |
Definition at line 126 of file OutputBufferInitialization.cpp.
References CHECK, compact_byte_width(), get_bit_width(), SQLTypeInfo::get_logical_size(), SQLTypeInfo::get_notnull(), inline_fp_null_val(), inline_int_null_val(), SQLTypeInfo::is_fp(), SQLTypeInfo::is_string(), kAPPROX_COUNT_DISTINCT, kAPPROX_QUANTILE, kAVG, kCOUNT, kCOUNT_IF, kMAX, kMIN, kMODE, kSAMPLE, kSINGLE_VALUE, kSUM, and kSUM_IF.
Referenced by anonymous_namespace{TargetExprBuilder.cpp}::get_initial_agg_val(), anonymous_namespace{GroupByAndAggregate.cpp}::get_keyless_info(), and init_agg_val_vec().
std::vector<int64_t> init_agg_val_vec | ( | const std::vector< Analyzer::Expr * > & | targets, |
const std::list< std::shared_ptr< Analyzer::Expr >> & | quals, | ||
const QueryMemoryDescriptor & | query_mem_desc | ||
) |
Definition at line 267 of file OutputBufferInitialization.cpp.
References agg_arg(), constrained_not_null(), g_bigint_count, get_target_info(), QueryMemoryDescriptor::getQueryDescriptionType(), QueryMemoryDescriptor::getSlotCount(), init_agg_val_vec(), heavyai::NonGroupedAggregate, and set_notnull().
std::vector<int64_t> init_agg_val_vec | ( | const std::vector< TargetInfo > & | targets, |
const QueryMemoryDescriptor & | query_mem_desc | ||
) |
Definition at line 26 of file OutputBufferInitialization.cpp.
References CHECK_GT, CHECK_LT, get_agg_initial_val(), get_compact_type(), QueryMemoryDescriptor::getCompactByteWidth(), QueryMemoryDescriptor::getPaddedSlotWidthBytes(), QueryMemoryDescriptor::getSlotCount(), QueryMemoryDescriptor::isGroupBy(), QueryMemoryDescriptor::isLogicalSizedColumnsAllowed(), kAVG, kENCODING_NONE, kSAMPLE, and takes_float_argument().
Referenced by init_agg_val_vec().
std::pair<int64_t, int64_t> inline_int_max_min | ( | const size_t | byte_width | ) |
Definition at line 87 of file OutputBufferInitialization.cpp.
Referenced by CgenState::inlineIntMaxMin(), and SqliteMemDatabase::runSelect().
std::pair<uint64_t, uint64_t> inline_uint_max_min | ( | const size_t | byte_width | ) |
Definition at line 106 of file OutputBufferInitialization.cpp.
Referenced by CgenState::inlineIntMaxMin().
|
inline |
Definition at line 435 of file QueryMemoryDescriptor.h.
References get_compact_type(), set_compact_type(), and TargetInfo::skip_null_val.
Referenced by init_agg_val_vec(), and target_exprs_to_infos().