OmniSciDB  1dac507f6e
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
QueryMemoryDescriptor.cpp File Reference
+ Include dependency graph for QueryMemoryDescriptor.cpp:

Go to the source code of this file.

Namespaces

 anonymous_namespace{QueryMemoryDescriptor.cpp}
 

Functions

bool anonymous_namespace{QueryMemoryDescriptor.cpp}::is_int_and_no_bigger_than (const SQLTypeInfo &ti, const size_t byte_width)
 
std::vector< ssize_t > anonymous_namespace{QueryMemoryDescriptor.cpp}::target_expr_group_by_indices (const std::list< std::shared_ptr< Analyzer::Expr >> &groupby_exprs, const std::vector< Analyzer::Expr * > &target_exprs)
 
std::vector< ssize_t > anonymous_namespace{QueryMemoryDescriptor.cpp}::target_expr_proj_indices (const RelAlgExecutionUnit &ra_exe_unit, const Catalog_Namespace::Catalog &cat)
 
int8_t anonymous_namespace{QueryMemoryDescriptor.cpp}::pick_baseline_key_component_width (const ExpressionRange &range, const size_t group_col_width)
 
int8_t anonymous_namespace{QueryMemoryDescriptor.cpp}::pick_baseline_key_width (const RelAlgExecutionUnit &ra_exe_unit, const std::vector< InputTableInfo > &query_infos, const Executor *executor)
 
std::string anonymous_namespace{QueryMemoryDescriptor.cpp}::boolToString (const bool val)
 
std::string anonymous_namespace{QueryMemoryDescriptor.cpp}::queryDescTypeToString (const QueryDescriptionType val)
 
std::vector< TargetInfotarget_exprs_to_infos (const std::vector< Analyzer::Expr * > &targets, const QueryMemoryDescriptor &query_mem_desc)
 

Variables

bool g_enable_smem_group_by true
 
bool g_enable_columnar_output
 

Function Documentation

std::vector<TargetInfo> target_exprs_to_infos ( const std::vector< Analyzer::Expr * > &  targets,
const QueryMemoryDescriptor query_mem_desc 
)

Definition at line 1179 of file QueryMemoryDescriptor.cpp.

References g_bigint_count, get_target_info(), QueryMemoryDescriptor::getQueryDescriptionType(), NonGroupedAggregate, and set_notnull().

Referenced by SpeculativeTopNMap::asRows(), device_allocator_(), and QueryMemoryInitializer::QueryMemoryInitializer().

1181  {
1182  std::vector<TargetInfo> target_infos;
1183  for (const auto target_expr : targets) {
1184  auto target = get_target_info(target_expr, g_bigint_count);
1185  if (query_mem_desc.getQueryDescriptionType() ==
1187  set_notnull(target, false);
1188  target.sql_type.set_notnull(false);
1189  }
1190  target_infos.push_back(target);
1191  }
1192  return target_infos;
1193 }
TargetInfo get_target_info(const PointerType target_expr, const bool bigint_count)
Definition: TargetInfo.h:65
bool g_bigint_count
QueryDescriptionType getQueryDescriptionType() const
void set_notnull(TargetInfo &target, const bool not_null)

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

Variable Documentation

Definition at line 26 of file QueryMemoryDescriptor.cpp.