OmniSciDB  04ee39c94c
AggregateReductionEgress< Experimental::MetaTypeClass< Experimental::Geometry > > Class Template Reference

Public Types

using ReturnType = void
 

Public Member Functions

ReturnType operator() (int const entry_count, int &error_code, TargetInfo const &agg_info, size_t &out_vec_idx, std::vector< int64_t *> &out_vec, std::vector< int64_t > &reduced_outs, QueryExecutionContext *query_exe_context)
 

Detailed Description

template<>
class AggregateReductionEgress< Experimental::MetaTypeClass< Experimental::Geometry > >

Definition at line 2099 of file Execute.cpp.

Member Typedef Documentation

◆ ReturnType

Member Function Documentation

◆ operator()()

ReturnType AggregateReductionEgress< Experimental::MetaTypeClass< Experimental::Geometry > >::operator() ( int const  entry_count,
int &  error_code,
TargetInfo const &  agg_info,
size_t &  out_vec_idx,
std::vector< int64_t *> &  out_vec,
std::vector< int64_t > &  reduced_outs,
QueryExecutionContext query_exe_context 
)
inline

Definition at line 2103 of file Execute.cpp.

References TargetInfo::agg_kind, SQLTypeInfoCore< TYPE_FACET_PACK >::get_physical_coord_cols(), QueryExecutionContext::getAggInitValForIndex(), QueryMemoryDescriptor::getPaddedSlotWidthBytes(), QueryExecutionContext::query_mem_desc_, Executor::reduceResults(), and TargetInfo::sql_type.

2109  {
2110  for (int i = 0; i < agg_info.sql_type.get_physical_coord_cols() * 2; i++) {
2111  int64_t val1;
2112  const auto chosen_bytes = static_cast<size_t>(
2113  query_exe_context->query_mem_desc_.getPaddedSlotWidthBytes(out_vec_idx));
2114  std::tie(val1, error_code) =
2115  Executor::reduceResults(agg_info.agg_kind,
2116  agg_info.sql_type,
2117  query_exe_context->getAggInitValForIndex(out_vec_idx),
2118  chosen_bytes,
2119  out_vec[out_vec_idx],
2120  entry_count,
2121  false,
2122  false);
2123  if (error_code) {
2124  return;
2125  }
2126  reduced_outs.push_back(val1);
2127  out_vec_idx++;
2128  }
2129  }
static std::pair< int64_t, int32_t > reduceResults(const SQLAgg agg, const SQLTypeInfo &ti, const int64_t agg_init_val, const int8_t out_byte_width, const int64_t *out_vec, const size_t out_vec_sz, const bool is_group_by, const bool float_argument_input)
Definition: Execute.cpp:601
int64_t getAggInitValForIndex(const size_t index) const
const int8_t getPaddedSlotWidthBytes(const size_t slot_idx) const
const int8_t const int64_t const uint64_t const int32_t const int64_t int64_t uint32_t const int64_t int32_t * error_code
const QueryMemoryDescriptor query_mem_desc_
+ Here is the call graph for this function:

The documentation for this class was generated from the following file: