OmniSciDB  a667adc9c8
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
anonymous_namespace{ColumnFetcher.cpp} Namespace Reference

Functions

const ColumnarResultscolumnarize_result (std::shared_ptr< RowSetMemoryOwner > row_set_mem_owner, const ResultSetPtr &result, const size_t thread_idx, const int frag_id)
 

Function Documentation

const ColumnarResults* anonymous_namespace{ColumnFetcher.cpp}::columnarize_result ( std::shared_ptr< RowSetMemoryOwner row_set_mem_owner,
const ResultSetPtr result,
const size_t  thread_idx,
const int  frag_id 
)
inline

Definition at line 26 of file ColumnFetcher.cpp.

References CHECK_EQ, get_logical_type_info(), i, and INJECT_TIMER.

Referenced by ColumnFetcher::getOneColumnFragment(), and ColumnFetcher::getResultSetColumn().

30  {
32  CHECK_EQ(0, frag_id);
33 
34  std::vector<SQLTypeInfo> col_types;
35  for (size_t i = 0; i < result->colCount(); ++i) {
36  col_types.push_back(get_logical_type_info(result->getColType(i)));
37  }
38  return new ColumnarResults(
39  row_set_mem_owner, *result, result->colCount(), col_types, thread_idx);
40 }
#define CHECK_EQ(x, y)
Definition: Logger.h:205
SQLTypeInfo get_logical_type_info(const SQLTypeInfo &type_info)
Definition: sqltypes.h:910
#define INJECT_TIMER(DESC)
Definition: measure.h:93
const ColumnarResults * columnarize_result(std::shared_ptr< RowSetMemoryOwner > row_set_mem_owner, const ResultSetPtr &result, const size_t thread_idx, const int frag_id)

+ Here is the call graph for this function:

+ Here is the caller graph for this function: